Thread Synchronization in C++: A Deep Dive into Condition Variables and Wait Patterns
📅 Date: 26 May 2026
🎙️ Speaker: Edgar Ragimov – Senior C++ Engineer at Luxoft Sofia, working on Mercedes-Benz projects
🔐 About the event:
This event will be held in English.
Part of the C/C++ User Group.
Agenda:
- Multithreading in C++ isn’t just about protecting data; it’s about efficient waiting without wasting CPU resources.
- Explore
std::condition_variableas a core tool for event-driven multithreading. - Dive deep into OS-level mechanics of thread synchronization and understand how
condition_variableinteracts with the OS scheduler. - Benchmark performance: latency and CPU load comparison between
sleep,condition_variable, and C++20’sstd::atomic::wait. - Identify production pitfalls such as spurious or lost wakeups and the "Thundering Herd" problem.
- Real-world patterns: backpressure handling, batching with
wait_for, and connection pools. - Modern C++20 approaches: replacing CV with
std::atomic::waitand clean thread termination usingstd::condition_variable_anyandstd::stop_token. - Q&A session.
Key takeaways:
- Understanding the interaction between condition variables, mutexes, predicates, and OS scheduler.
- How to write latency-critical and resource-efficient multithreaded code.
- Practical tips for robust thread synchronization in production.
Who is this event for?
Middle and Senior C++ developers aiming to build predictable and efficient multithreaded systems.
Additional info:
The event is free, but pre-registration is required.
Organized by DEV.BG – a specialized IT Job Board.
Sponsors of the event:
Speaker Bio:
- Senior C++ Engineer at Luxoft Sofia for the last 3 years, working on Mercedes-Benz projects.
- Born in Russia in 1973, along with the C language.
- Educated as a radio engineer.
- Started programming in 1991 with Turbo Basic and Turbo C++ during university.
- Experience with Windows 2000, Active Directory, Remote Desktop, SQL Server OLAP, and virtualization.
- Over 15 years designing high-tech projects, including VoIP/SIP communication systems.
- Former university and college teacher; private tutor in computer science, physics, and mathematics.
- Relocated to Bulgaria in 2016; family lives between Varna and Bratislava.
Useful links:
This event is free to attend
Free registration is required to attend this event
Register for Free
