mchr3k / org.intrace

Java tracing agent and live trace client
http://mchr3k.github.com/org.intrace/
73 stars 18 forks source link

Network output Deadlock #11

Open mchr3k opened 13 years ago

mchr3k commented 13 years ago

Main thread attempts to add a trace line to network output queue while holding a lock.

Network output thread attempts to grab the same lock as the main thread.

Deadlock!

Main thread needs to add trace to an unbounded queue and then sleep for a time which depends on the length of the queue.