Question: Question 1 1 ( Mandatory ) ( 3 . 3 3 4 points ) In _ _ _ _ _ _ _ _ _ ,
Question Mandatory points
In the process may be changing common variables, updating a table, writing a file, and so on
Question options:
A entry section
B critical section
C exit section
D remainder section
Question Mandatory points
Which of the following circumstances can cooperative scheduling take place?
Question options:
A when a process switches from the running state to the waiting state
B when a process switches from the running state to the ready state
C when a process switches from the waiting state to the ready state
D none of the above
Question Mandatory points
In the process requests permission to access and modify variables shared with others.
Question options:
A entry section
B critical section
C exit section
D remainder section
Question Mandatory points
Which of the following criticalsection problems requirements ensures only one process is active in its critical section at a time?
Question options:
A mutual exclusion
B progress
C bounded waiting
D none of the above
Question Mandatory points
Which of the following criticalsection problems requirements ensures programs will cooperatively determine what process will next enter its critical section?
Question options:
A mutual exclusion
B progress
C bounded waiting
D none of the above
Question Mandatory points
Which of the following criticalsection problems requirements limits the amount of time a program will wait before it can enter its critical section?
Question options:
A mutual exclusion
B progress
C bounded waiting
D none of the above
Question Mandatory points
Which of the following is true for the solutions to criticalsection problems?
Question options:
A No deadlock implies progress, and progress implies bounded waiting
B Bounded waiting implies progress, and progress implies no deadlock
C Progress implies no deadlock, and no deadlock implies bounded waiting
D Bounded waiting implies no deadlock, and no deadlock implies progress
Question Mandatory points
Saved
Which of the following is NOT true for Petersons solution?
Question options:
A Mutual exclusion is preserved
B The progress requirement is satisfied
C The boundedwaiting requirement is met
D Peterson's solution works for synchronization among more than two processes
Question Mandatory points
Saved
Which of the following variables are shared between the processes in Petersons solution?
Question options:
A int turn
B boolean flag
C both of the above
D none of the above
Question Mandatory points
Which of the following indicates that Pi can enter the critical section in Petersons solution?
Question options:
A flagj false or turn i
B flagj true or turn i
C flagj false or turn j
D flagj true and turn j
Question Mandatory points
Which of the following is a softwarebased solution to the criticalsection problem?
Question options:
A Peterson's solution
B testandset
C compareandswap
D all of the above
Question Mandatory points
Which of the following solutions needs hardware support for the critical section problem?
Question options:
A memory barriers
B compareandswap instruction
C atomic variables
D all of the above
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
