java - How many threads are involved in deadlock -


i trying figure out answer interview question how many threads involved in deadlock

i answered should 2 or more interviewer said wrong answer.

i tried searching web couldn't understand why answer wrong

a thread can deadlock if tries aquire resource holds. think of thread holds database lock, switches transaction (without committing first one) , tries same lock again.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -