Question: Why the following disabling and enabling interrupts as a lock implementation fail in achieving mutual exclusion for two threads to update a shared variable balance?

 Why the following disabling and enabling interrupts as a lock implementation

Why the following disabling and enabling interrupts as a lock implementation fail in achieving mutual exclusion for two threads to update a shared variable balance? In particular, which condition it violates? No assumptions about CPU speed or number of CPUs At most one process/thread in a critical section Cannot prevent entry if no others inside the critical section Should eventually be able to enter CS

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!