47.6k views
2 votes
For effective operating system, when to check for deadlock?

a) every time a resource request is made
b) at fixed time intervals
c) both (a) and (b)
d) none of the mentioned

User Gameboy
by
8.4k points

1 Answer

4 votes

Final answer:

Deadlock should be checked for in an operating system to ensure effective operation. This can be done by checking for deadlock every time a resource request is made and at fixed time intervals.

Step-by-step explanation:

Deadlock is a situation that occurs in an operating system when two or more processes are unable to proceed because each is waiting for the other to release a resource. To ensure the effective operation of an operating system, it is important to regularly check for deadlock. This can be done by:

  • Checking for deadlock every time a resource request is made.
  • Checking for deadlock at fixed time intervals.

By implementing both of these strategies, an operating system can proactively detect and prevent deadlock situations, ensuring the smooth functioning of processes.

User MissingNumber
by
8.0k points