Tag Info

New answers tagged


Implementing Bart's answer in the wonderful PlantUML could look like this, (ab)using an entity to distinguish the queue from the participating threads: The corresponding source code: participant Producer entity Queue Consumer->Queue : dequeue activate Consumer ... Producer->Queue : enqueue activate Producer Queue-->Consumer deactivate Consumer ...

Top 50 recent answers are included