Difference between revisions of "Main Page/aio"

From Nekcem
Jump to navigationJump to search
(Created page with "synchronous means that the OS will work on your IO request once they get you r request. asynchronous means the OS will delay to work on your IO request. Maybe it is because OS i…")
 
Line 1: Line 1:
synchronous means that the OS will work on your IO request once they get you
+
*Synchronous means that the OS will work on your IO request once they get your request.
r 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 aviable.
+
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 avaiable.
+
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 r
 
ight away. The IO fucntion will just post a message to the work queue and th
 
e 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

Revision as of 10:46, 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