Ask Question
9 October, 20:45

Explain why implementing synchronization primitives by disabling interrupts is not appropriate in a single-processor system if the synchronization primitives are to be used in user-level programs.

+2
Answers (2)
  1. 9 October, 21:40
    0
    Implementing synchronization primitives by disabling interrupt is not appropriate because it reduces the flexibility of the system.

    Synchronization primitives will make a program at user level to be able to switch interupts, thereby disabling the timer interrupt. Once a program at user-level has the ability to disable interrupts it also disables context switching which is not recommended for a program at that level.

    Once the context switching is disabled, the program can now run on the processor without allowing other programs to execute, which is bad considering the fact that it is to be used in a single-processor system because single processor systems contain only one process, and only one program can run at a time.
  2. 9 October, 23:10
    0
    Answer: Explanation:

    It is inappropriate to implement synchronization primitive in a single-processor if the synchronization primitives are to be used in user-level programs because it has the ability to disable interrupts. In addition, it can prevent context switching from taking place by disabling the power interrupt. This would now allow it to use the processor without letting other processes to execute. This can lead to starvation as resources are being allocated to other processes.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Explain why implementing synchronization primitives by disabling interrupts is not appropriate in a single-processor system if the ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers