I would like to use UML diagrams to show some processes I am designing and would like to implement.
The processes involve using a queue, and adding and taking out elements from it.
In one of this process the adding and taking out elements are done by two different threads.
In the other, both operations are done by the same thread.
So far I have used sequence diagrams to represent the process involving multithreads, but these diagrams don't have the level of granularity to show the queues processing,
Which is the best way to represent this with UML?