Tim Colson (tcolson) wrote:
> Hey gang -
> I just wanted to say thanks again to Ray and Robert for the preso's
> tonight, and Duffy for getting us access to the bldg/room. I'm
> inspired... I now want to build a multi-user server with two threads
> that has "purdy" buttons. :-)
> 
> Some interesting code snippets to gaze upon:
> 
> http://javaalmanac.com/egs/java.nio/pkg.html
> 
> http://www.onjava.com/pub/a/onjava/2004/09/01/nio.html

That's a good article; I used it as a reference point last year when
working on the whiteboard server. I do have one issue with it, though. ;)
"Unfortunately, there is a price to pay: an architecture based on I/O
multiplexing is significantly harder to understand and to implement
correctly than one based on thread pooling."

I actually disagree with that quite a bit. There are /some/ complexity
issues that come along with nio, but the perception that it is harder to
understand and to implement, imo, sound like the perception of someone
used to doing things the "java way"; I find multiplexed-i/o servers
cleaner to implement and easier to understand when all is said and done,
especially if you're dealing with any sort of shared resources.
See also:
http://grexengine.com/sections/externalgames/articles/Adam%20Martin-Java%20NIO%20Networking%20for%20Games-1.html
(3 part article dealing with nio servers)
By the same author:
http://grexengine.com/sections/people/adam/adamsguidetonio.html

And... I though it proper to give appropriate credit for last night's
"comic relief slide". The original (undoctored) comic is here:
http://ringlord.com/people/walrus/tmcm/006-spaghetti.jpg

Robert

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to