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
Post a Comment