Home » JAVA Programming » Multithreading » Question
  1. What should not be done to avoid deadlock?
    1. Use interruptible locks
    2. Avoid using multiple threads
    3. Avoid hold several locks at once
    4. Execute foreign code while holding a lock
    5. None of these
Correct Option: D

To avoid deadlock situation in Java programming do not execute foreign code while holding a lock.



Your comments will be displayed only after manual approval.