mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-11 03:13:32 +00:00
docs: add new diagrams for game loop, gateway, guarded suspension, half-sync/half-async, health check
This commit is contained in:
1 parent
9b64cdee98
commit
9d23a234bb
11 files changed
+20
-4
No files matched your search
@@ -35,6 +35,10 @@ Wikipedia says
|
||||
|
||||
> In concurrent programming, Guarded Suspension manages operations requiring a lock and a precondition, delaying execution until the precondition is met.
|
||||
|
||||
Sequence diagram
|
||||
|
||||

|
||||
|
||||
## Programmatic Example of Guarded Suspension Pattern in Java
|
||||
|
||||
The `GuardedQueue` class in Java showcases concurrent programming using the Guarded Suspension pattern. It includes synchronized methods that manage thread management and synchronization, demonstrating how threads wait for the right conditions to execute.
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 49 KiB |
Reference in new issue
Block a user