Question: Does anyone know where the questions below from? I dont need answers, just finding more resources to practice, thanks. (These questions are about operating system
Does anyone know where the questions below from? I dont need answers, just finding more resources to practice, thanks.
(These questions are about operating system )
/////
Which of the following is a software-based solution to the critical-section problem?
- Petersons solution
- test_and_set
- compare_and_swap
- all of the above
Which of the following regarding mutex lock is NOT true?
- mutex lock is a hardware solution to critical-section problem
- mutex lock is a higher-level software solution to critical-section problem
- mutex lock suffers from busy waiting
- the general rule of thumb is to use a mutex lock if the lock will be held for a duration less than two context switches
Which of the following critical-section problems requirements ensures programs will cooperatively determine what process will next enter its critical section?
- mutual exclusion
- progress
- bounded waiting
- none of the above
Which of the following is true for the solutions to critical-section problems?
- No deadlock implies progress, and progress implies bounded waiting
- Bounded waiting implies progress, and progress implies no deadlock
- Progress implies no deadlock, and no deadlock implies bounded waiting
- Bounded waiting implies no deadlock, and no deadlock implies progress
Which of the following actions should be performed among cooperating processes?
- process synchronization
- coordination
- both of the above
- none of the above
Assume count is a variable name, which of the following operations is atomic?
- count++
- count
- both of the above
- none of the above
Which of the following is the definition of processor?
- the hardware that executes instructions
- a physical chip that contains one or more CPUs
- the basic computation unit of the CPU
- including multiple computing cores on the same CPU
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
