Grokking Java Intermediate
0% completed
Design Patterns Related to Thread Synchronization
Design Patterns Related to Thread Synchronization
Certain classic concurrency design patterns illustrate how synchronization constructs are used in practice. We will discuss three common patterns:
- Producer-Consumer
- Read-Write Lock
- Thread Pool
Producer-Consumer Pattern
The Producer-Consumer (or Bounded Buffer) pattern is a way to safely communicate between threads when one or more producer threads create data (or tasks) and one or more consumer threads process that data
.....
.....
.....
Like the course? Get enrolled and start learning!
Reading Progress
0%