Solved

asynchronous i/o

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
eclipse shortcuts 9 62
how to see all occupied ports on windows 10 laptop 15 76
difference between sorce folder and folder in eclipise 3 28
how to debug htl and js pages 8 38
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
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 theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

840 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