Per Widerlund wrote:

> Michael Sinz wrote:

<SNIP>

>
> MS> You may find out that it ends up being easier since you
> MS> write your code to deal with one file and that one file
> MS> only and just get multiple objects or different classes
> MS> together to handle the whole combination.
>
> Yes, it is indeed a simple and elegant way to handle things,
> but you waste a lot of precious resources. When you want to
> handle hundreds of socket connections and must start up two
> threads per connection you soon run into trouble.
>
> //Per Widerlund

I think you should learn about some of the thread pools avialable.
Java Worls www.javaworld.com hase and excellent article on thread
pooling.    Instead of a select call it would probably be better for the
VMS to use native thread ppols internally instead of there current
design.

You could also emulate the select call if you wish using thread priorties.


Mike


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to