Answer
Deadlock: Threads wait forever for each other's locks.
Prevent by avoiding nested locks, ordering locks consistently, or using timeouts.
Prevent by avoiding nested locks, ordering locks consistently, or using timeouts.