Mock Quiz Hub

Mock Quiz Hub

Recent Updates
Added: OS Mid 1 Quiz
Added: OS Mid 2 Quiz
Added: OS Lab 1 Quiz
Time: 00:00

Quiz

Navigate through questions using the controls below

0%
Question 1 of 60 Quiz ID: q1
What is the primary cause of data inconsistency in concurrent processes?
Question 2 of 60 Quiz ID: q2
What is a race condition?
Question 3 of 60 Quiz ID: q3
In the critical-section problem, what is the entry section?
Question 4 of 60 Quiz ID: q4
Which of the following is NOT a requirement for a solution to the critical-section problem?
Question 5 of 60 Quiz ID: q5
What does the Progress requirement ensure?
Question 6 of 60 Quiz ID: q6
What is the main drawback of the interrupt-based solution to critical sections?
Question 7 of 60 Quiz ID: q7
In the first software solution for two processes, what does the variable 'turn' indicate?
Question 8 of 60 Quiz ID: q8
Why does the first software solution violate the progress requirement?
Question 9 of 60 Quiz ID: q9
Peterson's solution for two processes uses which shared variables?
Question 10 of 60 Quiz ID: q10
What does flag[i] = true indicate in Peterson's solution?
Question 11 of 60 Quiz ID: q11
Why is Peterson's solution not guaranteed to work on modern architectures?
Question 12 of 60 Quiz ID: q12
What is a memory barrier?
Question 13 of 60 Quiz ID: q13
In a weakly ordered memory model, what is guaranteed?
Question 14 of 60 Quiz ID: q14
Which hardware instruction atomically sets a variable to true and returns its previous value?
Question 15 of 60 Quiz ID: q15
What is the main disadvantage of the test-and-set solution for critical sections?
Question 16 of 60 Quiz ID: q16
What does the compare-and-swap instruction do?
Question 17 of 60 Quiz ID: q17
What is an atomic variable?
Question 18 of 60 Quiz ID: q18
What is a mutex lock?
Question 19 of 60 Quiz ID: q19
What is busy waiting?
Question 20 of 60 Quiz ID: q20
What is another name for a mutex lock that uses busy waiting?
Question 21 of 60 Quiz ID: q21
What is a semaphore?
Question 22 of 60 Quiz ID: q22
What is the difference between a counting semaphore and a binary semaphore?
Question 23 of 60 Quiz ID: q23
How can a binary semaphore be used to implement mutual exclusion?
Question 24 of 60 Quiz ID: q24
What is the purpose of the block() operation in semaphore implementation?
Question 25 of 60 Quiz ID: q25
What is the purpose of the wakeup() operation in semaphore implementation?
Question 26 of 60 Quiz ID: q26
What is a monitor?
Question 27 of 60 Quiz ID: q27
How is mutual exclusion achieved within a monitor?
Question 28 of 60 Quiz ID: q28
What are condition variables used for in a monitor?
Question 29 of 60 Quiz ID: q29
What does x.wait() do on a condition variable?
Question 30 of 60 Quiz ID: q30
What does x.signal() do on a condition variable?
Question 31 of 60 Quiz ID: q31
How can monitors be implemented using semaphores?
Question 32 of 60 Quiz ID: q32
What is the purpose of the 'next' semaphore in the monitor implementation?
Question 33 of 60 Quiz ID: q33
What is the conditional-wait construct x.wait(c) used for?
Question 34 of 60 Quiz ID: q34
In the resource allocator monitor, what does the acquire(int time) operation do?
Question 35 of 60 Quiz ID: q35
What is liveness?
Question 36 of 60 Quiz ID: q36
What is deadlock?
Question 37 of 60 Quiz ID: q37
How can deadlock occur with semaphores?
Question 38 of 60 Quiz ID: q38
What is starvation?
Question 39 of 60 Quiz ID: q39
What is priority inversion?
Question 40 of 60 Quiz ID: q40
How can priority inversion be solved?
Question 41 of 60 Quiz ID: q41
Which of the following is a hardware instruction for synchronization?
Question 42 of 60 Quiz ID: q42
What is the initial value of a binary semaphore used for mutual exclusion?
Question 43 of 60 Quiz ID: q43
In the semaphore implementation without busy waiting, what does the value of the semaphore represent?
Question 44 of 60 Quiz ID: q44
What is the main advantage of using monitors over semaphores?
Question 45 of 60 Quiz ID: q45
What is the key difference between a mutex lock and a binary semaphore?
Question 46 of 60 Quiz ID: q46
What is the purpose of the initialization code in a monitor?
Question 47 of 60 Quiz ID: q47
In the bounded-waiting solution using compare-and-swap, what is the purpose of the waiting array?
Question 48 of 60 Quiz ID: q48
What is the effect of instruction reordering on Peterson's solution?
Question 49 of 60 Quiz ID: q49
What is the key takeaway from the modern architecture example with Thread 1 and Thread 2?
Question 50 of 60 Quiz ID: q50
Which synchronization tool is specifically designed to avoid busy waiting?
Question 51 of 60 Quiz ID: q51
What is the primary use of a counting semaphore?
Question 52 of 60 Quiz ID: q52
In the monitor implementation, what is the purpose of the next_count variable?
Question 53 of 60 Quiz ID: q53
What is the significance of the value returned by compare-and-swap?
Question 54 of 60 Quiz ID: q54
How does the test-and-set instruction work?
Question 55 of 60 Quiz ID: q55
What is a common use of atomic variables?
Question 56 of 60 Quiz ID: q56
What is the main problem with the incorrect use of semaphores?
Question 57 of 60 Quiz ID: q57
What is the role of the mutex semaphore in the monitor implementation?
Question 58 of 60 Quiz ID: q58
In the resource allocator monitor, what is the purpose of the 'busy' variable?
Question 59 of 60 Quiz ID: q59
What is the key characteristic of a strongly ordered memory model?
Question 60 of 60 Quiz ID: q60
What is the final step in the monitor's procedure execution?

Quiz Summary

Review your answers before submitting

60
Total Questions
0
Answered
60
Remaining
00:00
Time Spent