----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
Urban Widmark wrote:
>
> On Tue, 2 Nov 1999, Glen Newton wrote:
>
> > Which are faster/less overhead/better : green threads or native threads?
>
> Green threads look like one thread to the kernel, so if one of them goes
> to sleep in the kernel (blocking on IO) the whole process stops. Switching
> between green threads should be cheaper (depending on how much state needs
> to be saved I guess).
Although this would seem to be a crippling problem for Java threads (one thread
blocks on a read, the whole VM hangs), in fact, I believe that the Java IO
libraries have been specifically written to avoid making blocking calls, so that
you can use green threads and not have your whole app when a single thread
blocks.
> --------------------------------------------------------------
--
Dan Milstein // [EMAIL PROTECTED]
Member of Technical Staff // Capital Knowledge Partners
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]