Can a process waiting for a spin lock be indefinitely postponed even if all processes guarantee to leave their critical sections after a finite amount of time?Aprocess waiting for a sleep/wakeup lock? If you answered yes, suggest a way to prevent indefinite postponement.
What will be an ideal response?
Yes, a process waiting for a spin lock can be indefinitely postponed. If, each time the
lock becomes available, another process grabs the lock first, the process will never enter its
critical section.One way around this is to maintain a FIFO queue of processes waiting for the
spin lock; a releasing process hands the lock to the first process in the queue. Processes still
spin to minimize reaction time to the lock’s availability.Aprocess waiting for a sleep/wakeup
lock also can be indefinitely postponed. This occurs if higher-priority processes continue to
wait for the lock, preventing a lower-priority process from ever entering its critical section.
One way to combat this is to periodically boost a process’s priority if it has been waiting for a
long time. Eventually, it will attain the highest priority and be guaranteed to enter its critical
section (assuming priority ties are broken by length of wait).
You might also like to view...
A ____ image can be displayed on a computer monitor.
a. continuous b. digital c. printed d. waveform
Case-Based Critical Thinking QuestionsCase 1-2As you prepare your first lecture as the new instructor of the introductory Flash class at the local community college, you take a minute to reintroduce yourself to the basics, which you know will be all-new to your students this evening. Which of the following is NOT a feature your students can find on the Edit bar?
A. Edit Symbols button B. Current scene number C. Drawing tools D. Zoom control
Which of the following is not a platform that can be used to access Windows Live programs and services?
a. On your PC b. On your smartphone c. On the Web d. All of these devices allow access to Windows Live programs and services.
In the world of printing, CMYK inks are known as what?
A. process inks B. spot colors C. Pantone colors D. RGB colors