Solved

asynchronous i/o

Posted on 2003-11-07
5
225 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Chrome and Firefox Java 5 67
Notify sent to other threads in Java 9 43
Eclipse Help Java EE 5,6,7 Documentation, why not Java EE 8 8 43
java mysql insert application 14 44
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…
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…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …

749 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