edited by
732 views
3 votes
3 votes
MSQ


A ‘Running’ process is surely put into ‘Blocked/Wait’ state during while requesting for an I/O, in which of the following I/O modes?

  1. Synchronous I/O
  2. Asynchronous I/O
  3. Interrupt Driven I/O
  4. DMA
edited by

2 Answers

Best answer
2 votes
2 votes

In synchronous file I/O, a thread starts an I/O operation and immediately enters a wait state until the I/O request has completed. 

A thread performing asynchronous file I/O sends an I/O request to the kernel by calling an appropriate function. If the request is accepted by the kernel, the calling thread continues processing another job until the kernel signals to the thread that the I/O operation is complete. It then interrupts its current job and processes the data from the I/O operation as necessary.

 

https://learn.microsoft.com/en-us/windows/win32/fileio/synchronous-and-asynchronous-i-o

selected by
1 votes
1 votes
A 'Running' process is put into a 'Blocked/Wait' state while requesting for an I/O in Synchronous I/O. This is because in synchronous I/O, the process will be blocked until the I/O request is processed and completed.

Related questions

20 votes
20 votes
2 answers
2
Rahul Jain25 asked Feb 6, 2017
10,371 views
What is formula for % of time CPU gets blocked??Is it X(X+Y) or X/Y only???What is formula for % of time CPU is consumed in Interuppt driven IO??? Formula for % of CPU s...
1 votes
1 votes
1 answer
3
Ayush Upadhyaya asked Oct 30, 2018
1,175 views
I think percentage of processor time consumed should be $\frac{ \,ISR\,time}{ISR\,time+\,Data\,Transfer\,Time}=\frac{100}{100+122}$.Is it correct?