Solved

asynchronous i/o

Posted on 2003-11-07
5
222 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Why method in Java which is called from Runnable run() doesn't need to be 'static'? 1 24
hibernate insert example 13 28
tomcat administrtor 12 46
runtime exception 2 27
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

776 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