Q. What should not be done to avoid deadlock? (Solved)

1. avoid using multiple threads

2. avoid hold several locks at once

3. execute foreign code while holding a lock

4. use interruptible locks

  • c. execute foreign code while holding a lock
Subscribe Now

Get All Updates & News