Problem B . 1) List all the possible transactions between the five process state
ID: 3743064 • 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 CPU?
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
1) transition from new to ready : when a prgram(firefox) is started the program is loaded to memory this is an examole for new to ready transistion.
transition from ready to running: when the process is allocated cpu time then it is said to be running this is an example of ready to running transition.
transition from running to ready : when the time slot of cpu is completed for the process it is again moved to ready state.
transition from running to waiting : when an io interrupt occurs the process can be moved from memory to disk. and when the io is completed it is brought back to memory.
transition from waiting to ready : when tge io is completed the process is brought back from disk to memory.
transition from running to terminate: when the process is completed it is moved to terminate state.
2) transition from new to ready is set by long term schedular, transition from ready to running is by cpu schedular, transitiin from running to waiting and waiting to ready are by medium term schedular.
3) transition from running to ready and running to waiting need PCB to be stored. transition from running to terminate need PCB to be destroyed.
if any questions please do comment.
thanks
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.