Mutexes (Selection) … synchronizes the access on critical sections std::mutex Provides exclusive access (can only be pulled by one thread
Continue readingCategory: Concurrency
std::recursive_mutex (C++)
The std::mutex is a non-recursive mutex and therefore can’t be locked again from the same thread before getting unlocked. This
Continue readingMain thread vs. Worker thread(s)
1. Main thread – Gets created during startup – It’s possibly the only thread – Normally sets up the app/program
Continue readingThreading – Mutex vs. Atomic (C++)
Since C++11 you can use std::thread, std::mutex and std::atomic for your multithreaded projects. The biggest problem with multithreading is the
Continue reading