docs: add diagrams for marker interface, master-worker, mediator, memento, metadata mapping, microservices api gateway, microservices log aggregation, monad, monitor, monostate, multiton, mute idiom

This commit is contained in:
Ilkka Seppälä
2025-04-07 22:14:20 +03:00
parent 72eeb167c5
commit 8d5cb59388
24 changed files with 48 additions and 4 deletions
+4
View File
@@ -36,6 +36,10 @@ Wikipedia says
> In concurrent programming (also known as parallel programming), a monitor is a synchronization construct that allows threads to have both mutual exclusion and the ability to wait (block) for a certain condition to become false. Monitors also have a mechanism for signaling other threads that their condition has been met.
Sequence diagram
![Monitor sequence diagram](./etc/monitor-sequence-diagram.png)
## Programmatic Example of Monitor Pattern in Java
The Monitor design pattern is a synchronization technique used in concurrent programming to ensure that only one thread can execute a particular section of code at a time. It is a method of wrapping and hiding the synchronization primitives (like semaphores or locks) within the methods of an object. This pattern is useful in situations where race conditions could occur.
Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB