Operating systems exams - multiple choice questions (MCQ) and answers



Operating Systems MCQ questions and answers – Set 13

1. Which of the following components of program state are NOT shared across threads in a multithreaded process?

(a) Register values
(b) Heap memory
(c) Global variables
(d) Stack memory


Click here to view answer and explanation


2. When a process creates a new process using the fork() operation, which of the following are shared between the parent process and the child process?
(a) Stack
(b) Heap
(c) Shared memory segments
(d) Page table


Click here to view answer and explanation


3. Four necessary conditions for deadlock are Mutual exclusion, hold and wait, no preemption and ________ .

(a) Preemption
(b) Wait and die
(c) Cyclic wait
(d) Wound and wait


Click here to view answer and explanation


4. Which is not the function of a dispatcher?

(a) Switching context
(b) Switching to use mode
(c) Jumping to the proper location in the user program to restart that program
(d) None of the above


Click here to view answer and explanation


5. Shortest Remaining Time First scheduling is a special case of:

(a) Preemptive priority scheduling
(b) Non-preemptive priority scheduling
(c) Optimal scheduling algorithm
(d) None of the above


Click here to view answer and explanation



*********