Multiple choice questions MCQs in OS, Important questions in process management of operating systems course.


Multiple Choice Questions in Operating Systems - Process Management


1. Process A is waiting for the result produced by process B. Also, process A has higher priority than B. So the OS prefers process A and refuses to give CPU time to B. Therefore, both A and B are stuck. What is this scenario called?
(a) Starvation
(b) Deadlock
(c) Livelock
(d) None of the above



Click here to view answer and explanation


2. Which of the following components ensures that process can execute within its own address space?
(a) I/O Device
(b) Memory addressing hardware
(c) Stack pointers
(d) All of the above



Click here to view answer and explanation


3. Let the time taken to switch between user and kernel modes of execution be t1 while the time taken to switch between two processes be t2. Which of the following is TRUE?
(a) t1 > t2
(b) t1 = t2
(c) t1 < t2
(d) Nothing can be said about the relation between t1 and t2



Click here to view answer and explanation


4. Pipe is used for inter-process communication. Which statements about PIPE are true?
(a) We may read and write from pipe at the same time
(b) pipe is used for unidirectional flow of data
(c) The pipe() system call requires an array of two integers as parameter
(d) All of the above



Click here to view answer and explanation


5. Consider three CPU-intensive processes, which require 10, 20 and 30 time units and arrive at times 0, 2 and 6, respectively. How many context switches are needed if the operating system implements a shortest remaining time first scheduling algorithm? Do not count the context switches at time zero and at the end.
(a) 1
(b) 2
(c) 3
(d) 4



Click here to view answer and explanation


*************