Operating System MCQ's Set-4

 



61] Which of the following components of a program state are shared across threads in multithreaded process?

(A) Register values

(B) Stack

(C) Global variables

(D) Both a & b

ANSWER : D


62] Which of the following OS not uses the kernel level thread___________?

(A) WindowsXP

(B) MS-DOS

(C) Linux

(D) Solaris

ANSWER : B


63] A thread shares its resources(like data section, code section, open files, signals) with ___________

(A) other process similar to the one that the thread belongs to

(B) other threads that belong to similar processes

(C) other threads that belong to the same process

(D) all of the Above

ANSWER : C


64] Because the kernel thread management is done by the Operating System itself ___________ 

(A) kernel threads are faster to create than user threads

(B) kernel threads are slower to create than user threads

(C) kernel threads are easier to manage as well as create then user threads

(D) All of the Above

ANSWER : B


65] The model in which one kernel thread is mapped to many user-level threads is called ___________

(A) Many to One model

(B) One to Many model

(C) Many to Many model

(D) One to One model

ANSWER : A


66] The model in which one user-level thread is mapped to many kernel level threads is called ___________

(A) Many to One model

(B) One to Many model

(C) Many to Many model

(D) One to One model

ANSWER : B


67] In the Many to Many models when a thread performs a blocking system call ___________ 

(A) other threads are strictly prohibited from running

(B) other threads are allowed to run

(C) other threads only from other processes are allowed to run

(D) All of the above

ANSWER : B


68] In the One to One model when a thread makes a blocking system call ___________

(A) other threads are strictly prohibited from running

(B) other threads are allowed to run

(C) other threads only from other processes are allowed to run

(D) All of the above

ANSWER : A


69] Which process can be affected by other processes executing in the system?

(A) cooperating process

(B) child process

(C) parent process

(D) init process

ANSWER : A


70] The interval from the time of submission of a process to the time of completion is termed as ____________ 

(A)  waiting time

(B) turnaround time

(C) response time

(D) throughput

ANSWER : B


71] Which scheduling algorithm allocates the CPU first to the process that requests the CPU first?

(A) first-come, first-served scheduling

(B) shortest job scheduling

(C) priority scheduling

(D) All of the above

ANSWER : A


72] A solution to the problem of indefinite blockage of low – priority processes is ____________

(A) Starvation

(B) Wait queue

(C) Ready queue

(D) Aging

ANSWER : D


73] In priority scheduling algorithm, when a process arrives at the ready queue, its priority is compared with the priority of ____________ 

(A) all process

(B) currently running process

(C) parent process

(D) init process

ANSWER : B


74] In multilevel feedback scheduling algorithm ____________

(A) a process can move to a different classified ready queue

(B) classification of ready queue is permanent

(C) processes are not classified into groups

(D) All of the above

ANSWER : A


75] A process is selected from the ______ queue by the ________ scheduler, to be executed.

(A) blocked, short term

(B) wait, long term

(C) ready, short term

(D) ready, long term

ANSWER : C


76] What is Dispatch latency?

(A) the speed of dispatching a process from running to the ready state

(B) the time of dispatching a process from running to ready state and keeping the CPU idle

(C) the time to stop one process and start running another one

(D) all of the above

ANSWER : C


77] What is Response time?

(A) the total time taken from the submission time till the completion time

(B) the total time taken from the submission time till the first response is produced

(C) the total time taken from submission time till the response is output

(D) All of the Above

ANSWER : B


78] Mutual exclusion implies that ____________ 

(A) if a process is executing in its critical section, then no other process must be executing in their critical sections

(B) if a process is executing in its critical section, then other processes must be executing in their critical sections

(C) if a process is executing in its critical section, then all the resources of the system must be blocked until it finishes execution

(D) All of the above

ANSWER : B


79] In the bakery algorithm to solve the critical section problem ____________ 

(A) each process is put into a queue and picked up in an ordered manner

(B) each process gets a unique number and the one with the highest number is served next

(C) each process gets a unique number and the one with the lowest number is served next

(D) each process receives a number (may or may not be unique) and the one with the lowest number is served next

ANSWER : D


80] Which of the following condition is required for a deadlock to be possible? 

(A) mutual exclusion

(B) a process may hold allocated resources while awaiting assignment of other resources

(C) no resource can be forcibly removed from a process holding it

(D) all of the Above

ANSWER : D













Popular Posts