docs: add new diagrams for game loop, gateway, guarded suspension, half-sync/half-async, health check

This commit is contained in:
Ilkka Seppälä committed 2025-04-06 20:55:07 +03:00
1 parent 9b64cdee98
commit 9d23a234bb
11 files changed
+20 -4

No files matched your search

+4
View File
@@ -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
![Guarded Suspension sequence diagram](./etc/guarded-suspension-sequence-diagram.png)
## 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