Solved

asynchronous i/o

Posted on 2003-11-07
5
216 Views
Last Modified: 2012-06-21
I'm making a simple chat program where the client sends a message to the server which the server redirects it back to all the connected clients.   In particular, I'm using the java .nio package (buffers and channels) and want to know if asynchronous i/o is a must in this case (since dealing with readings and writings of data).   Suppose even if its not mandatory, is it going to be critical if I'm going to build a larger program using this as a base?   Any comments are appreciated.  
0
Comment
Question by:skyblue01
  • 3
  • 2
5 Comments
 
LVL 86

Accepted Solution

by:
CEHJ earned 50 total points
ID: 9703765
>>and want to know if asynchronous i/o is a must in this case

Certainly not. This sort of thing was going on long before nio came out and still is going on ;-)

What makes you think you need it?
0
 

Author Comment

by:skyblue01
ID: 9703811
Oh okay.   But if I want ot make a network connection in the real-time environment, wouldn't it be critical spawning multiple threads and not having asynchronous i/o?   Also all the sample codes I've seen uses this feature and mine doesn't so I was wondering if I was doing something very inefficient...
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 9704049
>>.   But if I want ot make a network connection in the real-time environment, wouldn't it be critical spawning multiple threads and not having asynchronous i/o?  

Well, i'm not sure what you're doing (you didn't mention that above), so i can't really answer that...
0
 

Author Comment

by:skyblue01
ID: 9704320
CEHJ thanks for your suggestion.
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 9704343
:-)
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
This video teaches viewers about errors in exception handling.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now