Professional Documents
Culture Documents
Assignment 3 - OSF
Assignment 3 - OSF
4. When the process is waiting to be assigned to a processor, the process state is called
a. New state
b. Running state
c. Waiting state
d. Ready state
Ans: (d)
In ready state, the process waits to be assigned to a processor. In waiting state, the process
waits for some event to occur. New state creates a process while running state executes
instructions.
5. A process control block (PCB) contains information associated with each process.
Match the following information column with relevant process column.
6. A process does NOT give up the CPU under which of the following condition?
a. After a specified amount of time has elapsed on the timer
b. On I/O request
c. When the stack memory is full
d. None of the above
Ans: (c)
A process gives up the CPU only under two conditions. Either on I/O request or when a
specified time has elapsed on the timer.
9. I/O bound process spends more time doing I/O than computation with ____ CPU
bursts while CPU bound process spends more time doing computation with ____
CPU bursts.
a. many short, many short
b. few very long, few very long
c. many short, few very long
d. few very long, many short
Ans: (c)
The process ID (pid) = 8415 will wait for which of the following process(es) to
terminate?
a. pid=8416
b. pid=9268 & pid = 9204
c. pid = 1
d. pid = 8416, pid = 9268 & pid = 9204
Ans: (d)
A parent must wait for all the children to be terminated first. pid=8415 has the children
process with pid of 8416, 9268 & 9205. Therefore, pid=8415 will wait for these 3 processes
to be terminated first.