Which of the follwings are true? (There might be multiple carrect answers) Compare and swap is a hardware based solution correct correct Basic Compare and swap ensures bounded waiting |Test and set is...


URGENT MCQ SOLVE NEEDED (OPERATING SYSTEM)


Which of the follwings are true? (There might be multiple carrect answers)<br>Compare and swap is a hardware based solution correct correct<br>Basic Compare and swap ensures bounded waiting<br>|Test and set is a hardware solution that can be extended to a more complex alternative<br>|Implementing semaphore is more sophisticated than implementing test and set<br>Which of the follwings are true? (There might be multiple correct answers)<br>|In race condition multiple processes can execute shared information concurrently.<br>Process synchronization ensures data consistency.<br>Race condition does not create data inconsistency in a shared region.<br>Semaphore is only used to solve critical section problem.<br>

Extracted text: Which of the follwings are true? (There might be multiple carrect answers) Compare and swap is a hardware based solution correct correct Basic Compare and swap ensures bounded waiting |Test and set is a hardware solution that can be extended to a more complex alternative |Implementing semaphore is more sophisticated than implementing test and set Which of the follwings are true? (There might be multiple correct answers) |In race condition multiple processes can execute shared information concurrently. Process synchronization ensures data consistency. Race condition does not create data inconsistency in a shared region. Semaphore is only used to solve critical section problem.
Suppose the 2 processes in peterson's solution are numbered 0 and 1. Which of the following is a<br>valid code statement in the entry section of process 1?<br>O flag[1] = false<br>O turn = 0<br>O flag[0] = false<br>turn = 1<br># Define Flag[1]=TRUE;<br># Define Flag[0]=FALSE;<br># Define turn=1;<br># We have 4 line of codes in critical section.<br># Each line of the peterson solutions and critical section requires 2sec to execute.<br>Now if process 1 try to execute and enter in critical section after executing the entry section. what will<br>be the situation if context switch happens after 8sec?<br>O Process PO might enter in the critical section.<br>Process P1 will terminate and will not execute the reminder section.<br>O Contex switch can not take place after 8sec of execution.<br>Process PO never can enter the critical section.<br>Numerical Input<br>Suppose counting semaphore S is started from the value of 15. After that 10 times call the wait S operations and 10 times call the signal S. What is the<br>final value of S?<br>

Extracted text: Suppose the 2 processes in peterson's solution are numbered 0 and 1. Which of the following is a valid code statement in the entry section of process 1? O flag[1] = false O turn = 0 O flag[0] = false turn = 1 # Define Flag[1]=TRUE; # Define Flag[0]=FALSE; # Define turn=1; # We have 4 line of codes in critical section. # Each line of the peterson solutions and critical section requires 2sec to execute. Now if process 1 try to execute and enter in critical section after executing the entry section. what will be the situation if context switch happens after 8sec? O Process PO might enter in the critical section. Process P1 will terminate and will not execute the reminder section. O Contex switch can not take place after 8sec of execution. Process PO never can enter the critical section. Numerical Input Suppose counting semaphore S is started from the value of 15. After that 10 times call the wait S operations and 10 times call the signal S. What is the final value of S?
Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here