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.