Question about threads [beaver challenge]

David Xu davidxu at freebsd.org
Tue Feb 10 17:30:21 PST 2004


Julian Elischer wrote:

>>>process scope threads a re perfectly reasonable.. they however
>>>use more resources and are more heavily limitted.
>>>
>>>
>>>On the other hand process scope threads can lead to nasty surprises with
>>>the limits as they can "suddenly" hit th ekernel limit after running
>>>successfully for a time when they all (by some fluke) all decide to
>>>enter the kernel at the same time.
>>>      
>>>
>>Well, since the kernel limit for scope system threads is much smaller
>>than that for "threads blocked in kernel", you'd hit the limit much
>>sooner if the port/application used scope system threads instead
>>of scope process threads.
>>    
>>
>
>but at least it wouldn't be a surprise :-)
>

You can print a warning message like LDT allocating code.

David Xu




More information about the freebsd-threads mailing list