Skip to content
systemcoding.dev

Library

Everything you need to level up your coding skills.

Flat illustration of parallel threads meeting at a mutex, with the C, C++ and Erlang logos.
Concurrency

Wait for Conditions with pthread_cond_wait

Make a C thread sleep until another signals that work is ready with pthread_cond_wait, pthread_cond_signal and a predicate loop on Linux with glibc 2.41.

8 min read

Get new posts by email

We send one email when a new post is published. No spam.

Unsubscribe in one click. No spam, ever.