Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > NIO threading

Reply
Thread Tools

NIO threading

 
 
-
Guest
Posts: n/a
 
      07-05-2005
I have a Client and two subclasses ClientA and Client B. The reading
and writing using NIO is in Client class. If I use the old IO I will
have two threads for the reading and writing but now I only have one.

If I create ClientA and then ClientB, is the total number of threads 1
or 2? If it's 2, should I then alter Client so that there is only 1 (If
so, how) ? Is that what NIO is for - to have only 1 thread?
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: threading in PyQt vs threading in standard library Steven Woody Python 0 01-09-2009 07:48 AM
threading in PyQt vs threading in standard library Steven Woody Python 0 01-09-2009 07:15 AM
Cooperative threading preemptive threading - a bit confused failure_to@yahoo.co.uk Java 9 12-29-2007 01:10 AM
NIO with timeouts != NIO? iksrazal Java 1 06-18-2004 02:28 PM
a basic NIO Question dhek bhun kho Java 3 07-27-2003 03:50 AM



Advertisments