Quiz Space

Operating Systems Quiz 2: 16 March 2025 (January 2025 term)

Question 1

+4 marksOne correct option

Consider the following scenario where two processes are sharing a common variable.

Global setup

c
int turn = 1;

Process 1

c
while(1) {
while(turn == 2); // lock
// critical section
turn = 2; // unlock
// remainder section
}

Process 2

c
while(1) {
while(turn == 1); // lock
// critical section
turn = 1; // unlock
// remainder section
}

Which of the following statements about the given processes is correct?

  1. A

    Process 1 and Process 2 will enter their critical sections simultaneously, leading to race conditions.

  2. B

    Process 1 will always enter its critical section before Process 2.

  3. C

    Process 2 will always enter its critical section before Process 1.

  4. D

    Deadlock can occur if both processes try to enter their critical sections simultaneously.

Also asked in Quiz 2 4 Aug 2024, Quiz 2 23 Nov 2025

Question 2

+2 marksOne correct option

Assume that two processes P1 and P2 are using a shared resource. If P1 and P2 are both waiting indefinitely to enter their critical sections because each keeps waiting for the other to release the resource, then which of the following conditions is not satisfied?

  1. A

    Mutual exclusion

  2. B

    Progress

  3. C

    Bounded waiting

  4. D

    None of these

Question 3

+2 marksOne correct option
  1. A
  2. B
  3. C
  4. D

14 more questions in this paper

Sign in with Google — it is free — to see every question with its answer and explanation, practise it in learning mode, or take it as a timed mock test.

More on the Operating Systems Quiz 2 16 Mar 2025 paper

The IIT Madras BS Operating Systems (Operating Systems) Quiz 2 paper sat on 16 Mar 2025, in the January 2025 term: 17 questions for 50 marks in 120 minutes. The first 3 questions are below. Sign in with Google — it is free — to see the whole paper with its answers and explanations, in learning mode or as a timed mock test.

FeatureOperating Systems Quiz 2 16 Mar 2025 at a glance
TermJanuary 2025 term
SubjectOperating Systems
Course codeBSCS4022
Questions17
Marks50
Duration120 min
MCQ11
MSQ2
Numerical4
Official paperIIT M IMPROVEMENT AN EXAM QIM2 16 Mar 2025
Negative markingNo negative marking.
Updated

Same Quiz 2, other subjects

More Operating Systems