Professional Documents
Culture Documents
a) running
b) ready
c) blocked
d) waiting
1) a and b only
2) b only
3) a and d only
4) a, b, c only
Answer: 4
Level:1
a) New
b) Running
c) Waiting
d) Ready
e) Terminated
1) all except a
2) b,c,d only
4) a,b,c,d
Answer: 3
Level:1
1) Process state
2) Program counter
3) CPU registers
4) Stack pointer
Answer: 1,2,3,4
Level: 3
Exp: acronym
Level:1
1) Process state
2) Program counter
4) only 1,2
5) 1,2,3
Answer: 5
Exp: refer PCB properties
Level:1
1) process state
2) program counter
Answer: 4
Level:1
1) ready queue
2) Job queue
3) Device queue
Answer: 2
Exp: Job pool have the processes which are ready to be allocated CPU time
Level:1
8) Processes that are residing in main memory and are ready and waiting to execute are kept on
a list called
1) ready queue
2) Job queue
3) Device queue
Answer: 1
Exp: These are the processes which have been allocated CPU time slices and waiting for their
turn for execution
Level: 1
1) ready queue
2) Job queue
3) Device queue
Answer: 3
Exp: These jobs are lined in a queue for their processing done by the devices ( generally slow
I/O devices like printers)
Level:1
1) Dispatcher
2) Scheduler
Answer: 2
Exp: by def
Level:1
11) ________ selects processes from the job pool and loads them into the memory for
execution
3) CPU scheduler
Answer: 1
Exp: by def
Level:1
12) __________ selects from among the processes that are ready to execute, and allocates the
CPU to one of them
3) CPU scheduler
Answer: 2 and 3
Exp: by def
Level: 2
13) The CPU scheduler is also known as ________
Answer: 2
Exp: by def
Level:1
14) _________ removes processes from memory and thus reduces the degree of
multiprogramming
Answer: 3
Exp: by def
Level:2
15) _____________ controls the degree of multiprogramming (the number of processes in the
memory)
Answer: 1
Exp: The long term scheduler control the number processes being put into the job pool thus
controls the degree of multiprogramming.
Level: 2
16) The procedure of re-introducing the process into memory and its execution can be continued
from where it left off. This scheme is called________-
!) Swapping
2) Preemption
3) Paging
4) none
Answer: 2
Exp: by def
Level: 1
17) Switching the CPU to another process requires saving the state of the old process and
loading the saved state for the new process. This task is known as________
1) Paging
2) Context Switching
3) Preemption
4) None
Answer: 2
Exp: by def
Level:1
18) Which of the given options is a part of PCB
1) process state
2) program counter
Answer: 4
Level: 1
19) Provide programming examples in which multi threading provides better performance than a
single-threaded solution.
1) A Web server that services each request in a separate thread.
2) b) A parallelized application such as matrix multiplication where different parts of the
matrix may be worked on in parallel.
3) both a and b
4) none of the above
Answer: 3
Level: 2
20) What is true for the user-level threads and kernel-level threads?
1) kernel is aware of both the threads
2) On systems using either M:1 orM:N mapping, user threads are scheduled by the thread
library and the kernel schedules kernel threads.
3) both 1 and 2
4) only 2
Answer: 4
Level: 2
21) The actions taken by a kernel to context switch between kernel level threads typically requires
saving the value of the CPU registers from the thread being switched out and restoring the CPU
registers of the new thread being scheduled. T/F
Answer: T
Level: 2
Level:2
Level:2
24) Assume an operating system maps user-level threads to the kernel using the many-to-many
model and the mapping is done through LWPs. Further more, the system allows developers to
create real-time threads. Is it necessary to bind a real-time thread to an LWP? Yes/no
Answer: Yes.
Timing is crucial to real-time applications. If a thread is marked as real-time but is not bound to an
LWP, the thread may have to wait to be attached to an LWP before running. By binding an LWP to
a real time thread you are ensuring the thread will be able to run with minimal delay once it is
scheduled.
Level:2
25) Which of the following activities connected with process management are OS
responsibilities?
1) a, b, c
2) b, c, d
3) a, b, c, d
4) a, b, d
Answer: 4
Level:1
4) None
Answer: 1
Level:1
27) In a multi-processor system,
1) a, b, c, d
2) a, b, c
3) a, b
4) a
Answer: 3
Level:1
1) low throughput
2) no user interaction
3) None
4) Both 1, 2
Answer: 2
Level: 1
29) Hard real time systems – required to complete a critical task within a
guaranteed amount of time. True/ False
Answer: True
Level: 2
30) Soft real time computing – requires that critical processes receive priority
over less fortunate ones. True/ False
Answer: True
Level:2
Answer: false
Level: 1
3) active, active
4) passive, passive
Answer: 1
Level: 2
33) Each process has a segment of code called a critical section, in which the process may be
changing common variables, updating a table, writing a file, etc. True/False
Answer: True
Level: 1
1) a and b only
2) a and c only
3) b and c only
4) all a, b, c
Answer: 4
Level: 2
1) Thread burst
2) Process burst
3) CPU burst
4) None
Answer: 3
Level: 2
36) The method requiring saving the state of old process and loading the saved process of
new process is
1) Context switching
2) Switch program
3) switch processor
4) None
Answer: 1
by def
Level: 1
1) Spooling
2) Polling
3) Job scheduling
Answer: 2
Level: 2
1) Ready
2) Blocked
3) Idle
4) Running
Answer: 2
Level: 2
1) Subroutine
2) Procedure
3) Critical section
4) Function
Answer: 3
Level: 1
40) RPC stands for_____
Answer: 1
Level: 1
1) DMA
2) System call
3) Kernel
4) None
Answer: 2
Level: 1
1) Memory chips
2) Associative memory
3) Locality of reference
Answer: 3
Level: 2
1) It is a program
2) It is a program in execution
4) It is an instance .
Answer: 2
Level: 1
1) Blocked
2) Running
3) Ready
4) Privileged
Ans:- 4
45) The number of processes completed per unit time is known as __________.
1) Output
2) Throughput
3) Efficiency
4) Capacity
Ans :- 2
Level: 1
46) The difference between Buffer and Cache is that a buffer may hold the only
existing data whereas a cache holds a copy of the data for the faster retrieval.
Ans :- 2
Level: 2
Ans: 3
Level: 2
48) The collection of processes on the disk that is waiting to be brought into
memory for execution forms the ___________
1) Ready queue
2) Device queue
3) Input queue
4) Priority queue
Ans: - 3
Level: 1