NIO threading

Discussion in 'Java' started by -, Jul 5, 2005.

  1. -

    - Guest

    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?
    -, Jul 5, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. dhek bhun kho

    a basic NIO Question

    dhek bhun kho, Jul 26, 2003, in forum: Java
    Replies:
    3
    Views:
    573
  2. iksrazal

    NIO with timeouts != NIO?

    iksrazal, Jun 17, 2004, in forum: Java
    Replies:
    1
    Views:
    6,217
    iksrazal
    Jun 18, 2004
  3. Replies:
    9
    Views:
    1,008
    Mark Space
    Dec 29, 2007
  4. Steven Woody
    Replies:
    0
    Views:
    393
    Steven Woody
    Jan 9, 2009
  5. Steven Woody
    Replies:
    0
    Views:
    434
    Steven Woody
    Jan 9, 2009
Loading...

Share This Page