Difference between revisions of "Main Page/aio"

From Nekcem
Jump to navigationJump to search
 
Line 1: Line 1:
 
*Synchronous means that the OS will work on your IO request once they get your request.
 
*Synchronous means that the OS will work on your IO request once they get your request.
  
*Asynchronous means the OS will delay to work on your IO request. Maybe it is
+
*Asynchronous means the OS will delay to work on your IO request. Maybe it is because OS is busy working on some other stuff or the IO is not available.
because OS is busy working on some other stuff or the IO is not available.
 
  
*Blocking IO means you call the IO function to get the data. The function you
+
*Blocking IO means you call the IO function to get the data. The function you called will not return until the data is available.
called will not return until the data is available.
 
  
 
*Non-Blocking IO means you call the IO function and the IO function returns right away. The IO function will just post a message to the work queue and the other process will fetch the message from this queue and then begin to get the data from the IO. Once the data is ready, they will notify you the data is ready.   
 
*Non-Blocking IO means you call the IO function and the IO function returns right away. The IO function will just post a message to the work queue and the other process will fetch the message from this queue and then begin to get the data from the IO. Once the data is ready, they will notify you the data is ready.   
  
 
http://www.ibm.com/developerworks/linux/library/l-async/?S_TACT=105AGX52&S_CMP=cn-a-l
 
http://www.ibm.com/developerworks/linux/library/l-async/?S_TACT=105AGX52&S_CMP=cn-a-l

Latest revision as of 10:47, 6 February 2011

  • Synchronous means that the OS will work on your IO request once they get your request.
  • Asynchronous means the OS will delay to work on your IO request. Maybe it is because OS is busy working on some other stuff or the IO is not available.
  • Blocking IO means you call the IO function to get the data. The function you called will not return until the data is available.
  • Non-Blocking IO means you call the IO function and the IO function returns right away. The IO function will just post a message to the work queue and the other process will fetch the message from this queue and then begin to get the data from the IO. Once the data is ready, they will notify you the data is ready.

http://www.ibm.com/developerworks/linux/library/l-async/?S_TACT=105AGX52&S_CMP=cn-a-l