Frage im Vorstellungsgespräch bei IG Group

How to avoid deadlocks?

Antworten zu Vorstellungsgespräch

Anonym

21. Sept. 2010

ordering of synchronization blocks

Anonym

19. März 2011

1. Look for the deadlock pattern in your code: thread A holds lock 1 and waits on lock 2 thread B holds lock 2 and waits on lock 1 2. Use the non-locking data structures in the java.util.concurrent package