InterviewSolution
Saved Bookmarks
| 1. |
What should not be done to avoid deadlock?(a) Avoid using multiple threads(b) Avoid hold several locks at once(c) Execute foreign code while holding a lock(d) Use interruptible locks |
|
Answer» Correct choice is (c) Execute foreign code while holding a lock The best explanation: To avoid deadlock situation in Java programming do not execute foreign code while holding a lock. |
|