Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why is disabling interrupts a pessimistic approach to ensure concurrency control?

0
Posted

Why is disabling interrupts a pessimistic approach to ensure concurrency control?

0

Disabling interrupts before entering a critical region ensures that no interrupt service routines can intervene. It also ensures that clock interrupts will be disabled which means that the CPU cannot be switched to another process. Thus the process need have no fear of any other process interfering with its critical region. Thus, disabling interrupts is a brute-force approach to avoid concurrency-related problems.This approach is pessimistic because it assumes that every interrupt will give control to a process which will want to interfere with the earlier process’ critical region. In reality this is not the case.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123