Problem B . 1) List all the possible transactions between the five process state
ID: 3743057 • Letter: P
Question
Problem B. 1) List all the possible transactions between the five process states in the diagram of process state, for each of which provide one example of the action/event/situation that may cause such transaction.
2)What state transitions can be possibly triggered by CPU (short-term) scheduler, long-term scheduler, and medium-term scheduler, respectively? (hint: describe it as org. state X à new state Y)
3)In which state(s), the PCB (process control block) of a process needs to be saved, loaded/reloaded, or destroyed, respectively, by the CP?
Diagram of Process State admitted interupt exi terminated new ready running scheduler dispatch IVO or event completion o or event wat waiting Operating System Concepts-10th Edition 2.7 Silberschatz, Galvin and Gagne G2018Explanation / Answer
please do upvote.If you have any problem do comment and i will be happy to help you.Thanks for using chegg.
---------------------
1)
following are possible transactions with examples that can cause such transaction:
admitted - --->action of long term scheduler can cause it
scheduler dispatch----->e.g when a process is the most suitable process to be executed as determined by lot of factors like scheduling policy , cpu performance,available memory etc a scheduler dispatch occurs for that process
interrupt ----->e.g When a high priority process is availabe in ready queue,the current process in interrupted
I/O or event wait-----> for e.g waiting for input to be given by user
I/O or event completion-----> e.g the process have received its input from user
exit --------> e.g it occurs when process have completed execution
---------------------
2)
short term scheduler-----> There are lot of processes in ready queue.It chooses one of process and allocates cpu for it.Hence transition from ready-----> running an be triggered by it
long term scheduler-----> It chooses processes and puts them into ready queue .Hence transition from new----> running an be triggered by it
medium term scheduler-----> It tries to reduce burden on main storage by withdrawing processes from main storage and putting it in secondary storage.Hence transition from running-----> waiting an be triggered by it
-------------------------
3)
pcb(process control block)---->It contains various data about process which is essential for running the process.
pcb is saved----->when it transitions to waiting state
pcb is loaded/reload ----->when it transitions to running state
pcb is destroyed ----->when it transitions to terminated state
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.