How to write a multithreaded webserver using condition variables (Part 3)
Patreon ➤ / jacobsorber Courses ➤ https://jacobsorber.thinkific.com Website ➤ https://www.jacobsorber.com --- How to write a multithreaded webserver using condition variables (Part 3) // Do you have a thread pool waiting for work to arrive? Ever wondered what a condition variable is, and how it can help with this problem? Well, this video has your answers, including example code in C using pthreads condition variables to allow multiple threads to wait efficiently without burning all of your CPU cycles. This is the 3rd installment of the multithreaded webserver series. The previous two videos are at the following links. • How to write a multithreaded server in C (... • Multithreaded Server Part 2: Thread Pools *** Welcome! I post videos that help you learn to program and become a more confident software developer. I cover beginner-to-advanced systems topics ranging from network programming, threads, processes, operating systems, embedded systems and others. My goal is to help you get under-the-hood and better understand how computers work and how you can use them to become stronger students and more capable professional developers. About me: I'm a computer scientist, electrical engineer, researcher, and teacher. I specialize in embedded systems, mobile computing, sensor networks, and the Internet of Things. I teach systems and networking courses at Clemson University, where I also lead the PERSIST research lab. More about me and what I do: https://www.jacobsorber.com https://people.cs.clemson.edu/~jsorber/ http://persist.cs.clemson.edu/ To Support the Channel: like, subscribe, spread the word contribute via Patreon --- [ / jacobsorber ] rep the channel with nerdy merch --- [https://teespring.com/stores/jacob-so...] Source code is also available to Patreon supporters. --- [https://jsorber-youtube-source.heroku...] Want me to review your code? Email the code to [email protected]. Code should be simple and in one of the following languages: C, C++, python, java, ruby. You must be the author of the code and have rights to post it. Please include the following statement in your email: "I attest that this is my code, and I hereby give Jacob Sorber the right to use, review, post, comment on, and modify this code on his videos." You can also find more info about code reviews here. • I want to review your code.

How one thread listens to many sockets with select in C.

Condition variables in C

Why are Progress Bars Always Wrong? Progress Bar Example in C.

How to write a multithreaded server in C (threads, sockets)

Thread Pools in C (using the PTHREAD API)

Android 17 sucks. So I put Linux on a phone.

Why Are Threads Needed On Single Core Processors

"Clean" Code, Horrible Performance

Turing Award Winner: Disagreeing with Google, Postgres, Future Problems | Mike Stonebraker

How Much Memory for 1,000,000 Threads in 7 Languages | Go, Rust, C#, Elixir, Java, Node, Python

Coding a Web Server in 25 Lines - Computerphile

People THINK C++ is hard; It isn't

Only 40 lines of code

Locked in… until it’s done / Boom Bap Jazzy Lo-fi for getting things done

Condition Variable in Modern cpp and unique lock | Introduction to Concurrency in C++

Creator of C++: Bell Labs, Negative Overhead Abstraction, Mistakes | Bjarne Stroustrup

Making variables atomic in C

The Strange Math That Predicts (Almost) Anything

Keynote: After the AI Hype – What’s Real, and What’s Next - Richard Campbell - 2026

