Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1) An application comprises several processes— a primary process and some child

ID: 3823263 • Letter: 1

Question

1) An application comprises several processes— a primary process and some child processes. This arrangement provides computation speedup if a. The computer system contains many CPUs b. Some of the processes are I/O bound c. Some of the processes are CPU bound d. None of the above

2)Classify each of the following statements as true or false: a. The OS creates a single process if two users execute the same program. b. The state of a process that is blocked on a resource request changes to running when the resource is granted to it. c. There is no distinction between a terminated process and a suspended process. d. After handling an event, the kernel need not perform scheduling before dispatching if none of the process states has chang e. When a user-level thread of a process makes a system call that leads to blocking, all threads of the process become blocked. f. Kernel-level threads provide more concurrency than user-level threads in both uniprocessor and multiprocessor systems. g. When a process terminates, its termination code should be remembered until its parent process terminates

3) Which of the following state transitions for a process can cause the state transition blocked ready for one or more other processes? a. A process starts an I/O operation and becomes blocked. b. A process terminates. c. A process makes a resource request and becomes blocked. d. A process sends a message. e. A process makes the state transition blocked blocked swapped.

SUBJECT OPERATION SYSTEM

Explanation / Answer

1) An application comprises several processes— a primary process and some child processes. This arrangement provides computation speedup if b. Some of the processes are I/O bound, because only in case of I/O bound processes, CPU will get a chance to work on other things parallely.

2) a. The OS creates a single process if two users execute the same program.:   False.. Each process has seperate address space..
b. The state of a process that is blocked on a resource request changes to running when the resource is granted to it.: False ..It will go to ready state again.
c. There is no distinction between a terminated process and a suspended process.: False A terminated process is when it is done.. It will not come again to scheduler.. while the suspended process will again come to scheduler in order to work again.
d. After handling an event, the kernel need not perform scheduling before dispatching if none of the process states has change: True
e. When a user-level thread of a process makes a system call that leads to blocking, all threads of the process become blocked: True.. As kernel has just one thread.
f. Kernel-level threads provide more concurrency than user-level threads in both uniprocessor and multiprocessor systems: True.. as kernel can schedule another thred.
g. When a process terminates, its termination code should be remembered until its parent process terminates: False: The child process can be killed without the interruption of the parent processes.. Child process completes their work and go to Terminated state, while parent can still run. Childs are not suspended till Parent is alive.


3) Which of the following state transitions for a process can cause the state transition blocked ready for one or more other processes? a. A process starts an I/O operation and becomes blocked. once input is provided, it will move to ready state.