Beruflich Dokumente
Kultur Dokumente
A.
B.
C.
D.
Answer: d
9. What is a short-term scheduler ?
a) It selects which process has to be brought into the ready queue
b) It selects which process has to be executed next and allocates CPU
c) It selects which process to remove from memory by swapping
d) None of these
Answer: b
10.The only state transition that is initiated by the user process itself is :
a) block
b) wakeup
c) dispatch
d) None of these
Answer: a
11.Which of the following does not interrupt a running process ?
a) A device
b) Timer
c) Scheduler process
d) Power failure
Answer: c
12.When high priority task is indirectly preempted by medium priority task
effectively inverting the relative priority of the two tasks, the scenario is
called
a) priority inversion
b) priority removal
c) priority exchange
d) priority modification
Answer:a
13.In UNIX, each process is identified by its :
a) Process Control Block
b) Device Queue
c) Process Identifier
d) None of these
Answer: c
14.The child process completes execution, but the parent keeps executing, then
the child process is known as :
a) Orphan
b) Zombie
c) Body
d) Dead
Answer: b
15.The link between two processes P and Q to send and receive messages is
called :
a) communication link
b) message-passing link
c) synchronization link
d) All of these
Answer: a
16.In the Zero capacity queue : (choose two)
a) the queue has zero capacity
Answer:a
24.Which one of the following can not be scheduled by the kernel?
a) kernel level thread
b) user level thread
c) process
d) none of the mentioned
Answer:b
25. An I/O bound program will typically have :
a) a few very short CPU bursts
b) many very short I/O bursts
c) many very short CPU bursts
d) a few very short I/O bursts
Answer: c
26.The switching of the CPU from one process or thread to another is called :
a) process switch
b) task switch
c) context switch
d) All of these
Answer: d
27.Turnaround time is :
a) the total waiting time for a process to finish execution
b) the total time spent in the ready queue
c) the total time spent in the running queue
d) the total time from the completion till the submission of a process
Answer: d
28.The most optimal scheduling algorithm is :
a) FCFS First come First served
b) SJF Shortest Job First
c) RR Round Robin
d) None of these
Answer: b
29.Consider the following set of processes, the length of the CPU burst time
given in milliseconds :
Process Burst time
P1 6
P2 8
P3 7
P4 3
Assuming the above process being scheduled with the SJF scheduling
algorithm :
a) The waiting time for process P4 is 3ms.
b) The waiting time for process P4 is 0ms.
c) The waiting time for process P4 is 16ms.
d) The waiting time for process P4 is 9ms.
Answer: b
30.One of the disadvantages of the priority scheduling algorithm is that :
a) it schedules in a very complex manner
b) its scheduling takes up a lot of time
c) it can lead to some low priority process waiting indefinitely for the CPU
d) None of these
Answer: c
31.Aging is :
a) keeping track of cache contents
b) keeping track of what pages are currently residing in memory
c) keeping track of how many times a given page is referenced
d) increasing the priority of jobs to ensure termination in a finite time
Answer: d
32.Which of the following statements are true ?
i) Shortest remaining time first scheduling may cause starvation
ii) Preemptive scheduling may cause starvation
iii) Round robin is better than FCFS in terms of response time
i. i only
b) i and iii only
c) ii and iii only
d) i, ii and iii
Answer: d
33.The following program:
main()
{
if(fork()>0)
sleep(100);
}
results in the creation of:
a) an orphan process
b) a zombie process
c) a process that executes forever
d) None of these
Answer: b
34.If a process does not call exec after forking,
a) the program specified in the parameter to exec will replace the entire
process.
b) all the threads should be duplicated
c) all the threads should not be duplicated
d) None of these
Answer: b
35.Thread cancellation is :
a) the task of destroying the thread once its work is done
b) the task of removing a thread once its work is done
c) the task of terminating a thread before it has completed
d) None of these
Answer: c
36.In the Many to One model, if a thread makes a blocking system call :
a) the entire process will be blocked
b) a part of the process will stay blocked, with the rest running
c) the entire process will run
d) None of these
Answer: a
37.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) None of these
Answer: b
38.The stub :
a) transmits the message to the server where the server side stub receives
the message and invokes procedure on the server side
b) packs the parameters into a form transmittable over the network
c) locates the port on the server
d) All of these
Answer: d
39.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 these
Answer: c
40.Which of the following is FALSE ?
a) Context switch time is longer for kernel level threads than for user level
threads
b) User level threads do not need any hardware support
c) Related kernel level threads can be scheduled on different processors in a
multiprocessor system
d) Blocking one kernel level thread blocks all other related threads
Answer: d