Question: In the kill function we inspect a processes state before we finalize the killing of a process. Why? Group of answer choices A terminated suspended

In the kill function we inspect a processes state before we finalize the killing of a process. Why?
Group of answer choices
A terminated suspended process must be resumed before being terminated.
A terminated ready process needs to be removed from the ready list
A terminated sleeping process needs to be removed from the sleep queue.
A terminated waiting process needs to increment the semaphore it was waiting on
Group of answer choices
A process may block if and only if restore(mask) is run.
A processes pid is stored in currpid if and only if its state is set to running (PR_CURR)
A process is on the sleep queue if and only if its state is set to blocked (PR_SLEEP or PR_RECTIM)
A process is on the ready list if and only if its state is set to ready (PR_READY)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!