On 4/3/06, Daniel Guggi <[EMAIL PROTECTED]> wrote:
> Hi!
> >
> > Right. I said you need to use polling, or use 5000 threads (which is
> > not a problem if you have enough memory).
> >
> Are you sure that 5000 threads is not a problem when you have enough
> memory. I'd be worried about wasting lots of cpu because of
> context-switching???

Yes, it actually works well on appropriate OSes (for example, on
recent Linuxes), and the CPU wasted is not significant. Of course,
it's a lot better to conserve resources if possible, it's possibly
unfair for some requests (which will wait more than others), and it's
more difficult to control concurrency in the business logic which
could lead to excessive locking (however, the said business logic
might be much simpler due to the easy to work with programming model).

--
xxxxxxxxxxxxxxxxxxxxxxxxx
Rémy Maucherat
Developer & Consultant
JBoss Inc
xxxxxxxxxxxxxxxxxxxxxxxxx

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

Reply via email to