![](https://www.modernescpp.com/wp-content/uploads/2023/07/ConcurrencyPatterns-495x400.png)
Thread-Safe Queue – Two Serious Errors
/
3 Comments
In my last post "Monitor Object" I implemented a thread-safe queue. I made two serious errors.…
![](https://www.modernescpp.com/wp-content/uploads/2023/07/ConcurrencyPatterns-495x400.png)
Monitor Object
The monitor object design pattern synchronizes concurrent member function execution to ensure that only…
![ConcurrencyPatterns](https://www.modernescpp.com/wp-content/uploads/2023/04/ConcurrencyPatterns.png)
Active Object
The active object design pattern decouples method execution from method invocation for objects that each…
![DealingWithMutation](https://www.modernescpp.com/wp-content/uploads/2023/05/DealingWithMutation.png)
Dealing with Mutation: Guarded Suspension
Guarded Suspension applies a unique strategy to deal with mutation. It signals when it is done with…
![DealingWithMutation](https://www.modernescpp.com/wp-content/uploads/2023/05/DealingWithMutation.png)
Dealing with Mutation: Thread-Safe Interface
I continue my journey with concurrency patterns in today's post. The Thread-Safe Interface fits very…
![DealingWithMutation](https://www.modernescpp.com/wp-content/uploads/2023/05/DealingWithMutation.png)
Dealing with Mutation: Locking
Locking is a classical way to protect a shared, mutable state. Today, I will present the two variants,…
![Sharing](https://www.modernescpp.com/wp-content/uploads/2023/05/Sharing.png)
Dealing with Sharing
If you don’t share, no data races can happen. Not sharing means that your thread works on local variables.…
![ConcurrencyPatterns](https://www.modernescpp.com/wp-content/uploads/2023/04/ConcurrencyPatterns.png)
Concurrency Patterns
There are many well-established patterns used in the concurrency domain. They deal with synchronization…
![Reactor](https://www.modernescpp.com/wp-content/uploads/2023/04/Reactor.png)
Reactor
Event-driven applications, such as GUIs or servers, often apply the architecture pattern Reactor. A Reactor…
![](https://www.modernescpp.com/wp-content/uploads/2023/04/MVC.png)
Model-View-Controller
The Model-View-Controller (MVC) is one of the classic architectural patterns from the book "Pattern-Oriented…