Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does OIO mean in java?

Forgive me I just began to learn Java network programming. I just read Netty in Action which mentions a OIO.

NIO is used in this example because it’s currently the most widely used transport, thanks to its scalability and thoroughgoing asynchrony. But a different transport implementation could be used as well. If you wished to use the OIO transport in your server, you’d specify OioServerSocketChannel and OioEventLoopGroup.

I knew the Java IO and NIO already before. But what is the OIO?

I tried to search it in the google but got nothing. Could anyone please help explain what it is?

like image 292
Joe.wang Avatar asked Feb 03 '16 02:02

Joe.wang


People also ask

What is I/O in Java?

Java I/O (Input and Output) is used to process the input and produce the output. Java uses the concept of a stream to make I/O operation fast.

What is the difference between Java NIO and Io?

I will get into more detail about each difference in the sections following the table. The first big difference between Java NIO and IO is that IO is stream oriented, where NIO is buffer oriented. So, what does that mean?

What does OIO stand for?

What does OIO stand for? What does OIO mean? This page is about the various possible meanings of the acronym, abbreviation, shorthand or slang term: OIO. Onderzoeker In Opleiding (PhD student; Research worker in training) Couldn't find the full form or full meaning of OIO? Know what is OIO? Got another good explanation for OIO?

What is Io blocking in Java?

Blocking IO wait for the data to be write or read before returning. Java IO's various streams are blocking. It means when the thread invoke a write () or read (), then the thread is blocked until there is some data available for read, or the data is fully written.


1 Answers

OIO stands for Old IO or Blocking IO. In this model each socket or client connection results in spawning a new dedicated thread to handle the request. So, Number or threads == Number of clients/sockets active.

With NIO or New IO, it is possible to have fewer threads serve more number of clients. Here, Number or threads < Number of clients/sockets active.

like image 90
Madhusudana Reddy Sunnapu Avatar answered Sep 30 '22 18:09

Madhusudana Reddy Sunnapu