KSE, libpthread & libthr: almost newbie question

Daniel Eischen eischen at vigrid.com
Sat Oct 28 14:27:19 UTC 2006


On Sat, 28 Oct 2006, Robert Watson wrote:

>
> On Fri, 27 Oct 2006, Julian Elischer wrote:
>
>> there is class of problems (e.g. some java programs) that have THOUSANDS of 
>> threads, each representing an active aspect of some object. How do you put 
>> an rlimit on that without either 1/ stopping the program from working or 2/ 
>> allowing thousands of threads to exist but not screwing other users.
>
> Does the JVM actually expose thousands of threads to the OS, or does it 
> actually do its own M:N threading internally based on its execution model? My 
> impression is the latter, exposing threads to the OS only when it needs them 
> to consume kernel or CPU resources.

I think it exposes all threads to the OS.  I think "green threads"
was its own threading.  You should ask -java, though.

-- 
DE


More information about the freebsd-current mailing list