1,044 views
0 votes
0 votes
Consider a process P1 that is executing on a Linux-like OS on a single core system. When P1 is executing, a disk interrupt occurs, causing P1 to go to kernel mode to service that interrupt. The interrupt delivers all the disk blocks that unblock a process P2 (which blocked earlier on the disk read). The interrupt service routine has completed execution fully, and the OS is just about to re- turn back to the user mode of P1. At this point in time, what are the states (ready/running/blocked) of processes P1 and P2 ?

1 Answer

0 votes
0 votes
2? As its mentioned tht OS is returning to P1, also P1 was preempted for sys call so it will go to ready not blocked, since P2 executed and returning the ctrl so it will go from running to terminated

Related questions

0 votes
0 votes
2 answers
1
Sourin Kundu asked Jan 24, 2023
408 views
A process executes the following segment of code: int main(){fork();fork() && fork();}The number of new processes created is
1 votes
1 votes
1 answer
4
diksha kahensa asked Oct 20, 2016
1,457 views
Which of the following information is not a part of process control block?a) CPU scheduling informationb) CPU-stack pointer valuesc) CPU-timer informationd) CPU- accumula...