Interrupt Service Routine (ISR) steps:
Save processor registers → C
Check which device raised interrupt → D
Service the device → B
Restore processor registers → E
Re-enable interrupt facility → A
Correct sequence:
C, D, B, E, A
| LIST I | LIST II |
| A. Critical region | I. Hoare's monitor |
| B. Wait signal | II. Mutual exclusion |
| C. Working set | III. Principle of locality |
| D. Deadlock | IV. Circular wait |
Choose the correct answer from the options given below:
Critical region is related to mutual exclusion.
Wait signal is related to Hoare's monitor.
Working set is based on principle of locality.
Deadlock is related to circular wait.
So,
A – II, B – I, C – III, D – IV
Steps in page replacement:
No frame is free → D
Find a frame to replace → A
Free that frame → E
Update the page table → B
Use the freed frame for the new page → C
Assertion A is true because FIFO page replacement may show Belady’s anomaly.
In Belady’s anomaly, increasing the number of page frames can sometimes increase the number of page faults.
Reason R is true, but it is not the correct explanation of Assertion A.
Initial semaphore value = 7
Each P operation decreases the value by 1.
Each V operation increases the value by 1.
So,
$7 - 20 + x = 5$
$x - 13 = 5$
$x = 18$
S1 is false because LRU does not suffer from Belady’s anomaly.
S2 is true because shortest remaining time first may cause starvation for long processes.
S3 is false because each thread has its own stack.
Final Answer: (b) S1, S3 false and S2 is true
| List-I | List-II |
| A. Thread spawn | I. to convert a blocking system call into a nonblocking call |
| B. Block thread | II. to reclaim pages |
| C. Jacketing | III. processor turn to the execution of another ready thread |
| D. Flush | IV. thread is provided with its own register context |
Thread spawn → thread gets its own register context → IV
Block thread → CPU switches to another ready thread → III
Jacketing → convert blocking system call to nonblocking → I
Flush → reclaim pages → II
Matching:
A → IV
B → III
C → I
D → II
| List-I | List-II |
| A. Batch Multiprogramming | I. allows more efficient use of main memory |
| B. Time sharing | II. user no longer has direct access to the processor |
| C. Monitor | III. Maximize processor use |
| D. Reentrant Procedures | IV. minimize response time |
Batch Multiprogramming → maximize CPU utilization → III
Time sharing → minimize response time → IV
Monitor → user does not directly control processor → II
Reentrant procedures → efficient use of memory → I
Matching:
A → III
B → IV
C → II
D → I
Online Test Series, Information About Examination,
Syllabus, Notification
and More.
Online Test Series, Information About Examination,
Syllabus, Notification
and More.