Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <h2><strong>Asynchronous I/O</strong></h2> <p><a href="http://en.wikipedia.org/wiki/Asynchronous_I/O" rel="nofollow noreferrer">Asynchronous I/O</a> (from Wikipedia)</p> <blockquote> <p>Asynchronous I/O, or non-blocking I/O, is a form of input/output processing that permits other processing to continue before the transmission has finished.</p> </blockquote> <p>What this means is, if a process wants to do a <code>read()</code> or <code>write()</code>, in a synchronous call, the process would have to wait until the hardware finishes the physical I/O so that it can be informed of the success/failure of the I/O operation.</p> <p>On asynchronous mode, once the process issues a read/write I/O asynchronously, the system calls is returned immediately once the I/O has been passed down to the hardware or queued in the OS/VM. Thus the execution of the process isn't blocked (hence why it's called non-blocking I/O) since it doesn't need to wait for the result from the system call, it will receive the result later.</p> <h2><strong>Asynchronous Function</strong></h2> <p>Asynchronous functions is a function that returns the data back to the caller by a means of <em>event handler</em> (or <em>callback functions</em>). The callback function can be called at any time (depending on how long it takes the asynchronous function to complete). This is unlike the synchronous function, which will execute its instructions before returning a value.</p> <blockquote> <p>...can I do a asynchronous I/O in java?</p> </blockquote> <p>Yes, Java NIO provides non-blocking I/O support via <a href="http://download.oracle.com/javase/6/docs/api/java/nio/channels/Selector.html" rel="nofollow noreferrer">Selector</a>'s. Also, <a href="http://mina.apache.org/" rel="nofollow noreferrer">Apache MINA</a>, is a networking framework that also includes non-blocking I/O. A related <a href="https://stackoverflow.com/questions/592303/asynchronous-io-in-java">SO question</a> answers that question.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload