5
Asynchronous IO NOV 2011

Asynchronous io

Embed Size (px)

Citation preview

Page 1: Asynchronous io

Asynchronous IO

NOV 2011

Page 2: Asynchronous io

I/O wait CPU

What exactly is "iowait" ?

To summarize it in one sentence, 'iowait' is the percentage of time the CPU is idle AND there is at least one I/O in progress.

What we can do ?

Take advantage of the manager I/O

Page 3: Asynchronous io

 Java NIO and IOJava IO

● Blocking● Stream Oriented

Java NIO● Non-blocking IO● Buffer Oriented

Page 4: Asynchronous io

DEMOS

What are you doing?

Let's go to see CODE !!!

https://github.com/pablomoretti/async-java

Framework NIO

● Netty● Apache MINA● Vert.x● Node.js

Page 5: Asynchronous io

@elsantob

Questions ?