Women in Technology

Hear us Roar



Article:
  Building Highly Scalable Servers with Java NIO
Subject:   Event Dispatch Threads
Date:   2005-09-22 13:01:42
From:   Pawlorj
Hello,


In your article you mention using a round robin technique on a pool of Event Dispatch Thread. I downloaded your example code, but it seems that everything is dispatched from the SelectorThread, i.e., the server is single threaded. Am I missing something? Where are the Event Dispatch Threads being created?


Thank you,


Bob

Main Topics Oldest First

Showing messages 1 through 2 of 2.

  • Event Dispatch Threads
    2006-06-20 01:48:43  jirhum [View]

    Hi,

    I try to user the sample code oh nuno santos about NIO, did you find Where are the Event Dispatch Threads being created?

    thanks.
  • Event Dispatch Threads
    2005-10-28 00:47:35  nuno.santos [View]

    Hi.

    You are right in that the sample code is single threaded. It was a simplification I've made to post the code online, as I wanted to make the code as clear as possible. The original source code, uses a round robin strategy with around 3 to 4 threads. Implementing that is really a trivial extension, it should be no problem for anyone willing to spend an afternoon tweaking the code.

    Cheers,
    Nuno