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

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -

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

javascript - Restarting Supervisor and effect on FlaskSocketIO -