eBay Interview Question

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