Dimitris Vyzovitis <[EMAIL PROTECTED]> writes:
> 
> Isn't that a bit dangerous?

Well - anything you do with native code in Java is inherently "dangerous". 
Obviously it's best to use native threads when doing this kind of thing,
but I want compatibility with green threads in case people need that.

> Since the thread proliferation problem really affects only native threads 
> vm,

That's not quite true - there is still a limitation on creating a large 
number of green threads to simulate nonblocking I/O. Although green threads
effectively use select() and nonblocking I/O internally, they don't seem
to scale -- exactly why, I don't know -- probably because of things like
scheduler overhead.

Matt Welsh





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

Reply via email to