Pregunta de entrevista de eBay

Please explain synchronization in multi-thread environment and show us potential problem with deadlocks.