cvs commit: src/lib/libthr libthr.3

David Xu davidxu at freebsd.org
Wed Jun 15 22:07:51 GMT 2005


Jiawei Ye wrote:

>On 6/15/05, Robert Watson <rwatson at freebsd.org> wrote:
>  
>
>>rwatson     2005-06-15 15:21:10 UTC
>>
>> FreeBSD src repository
>>
>> Modified files:
>>   lib/libthr           libthr.3
>> Log:
>> Remove incorrect BUGS entry: libthr does support process-scope thread
>> scheduling.
>>
>>    
>>
>We still have this sysctl in -current: kern.threads.thr_scope.
>According to Dan, this is only available to libthr, but in your commit
>you mentioned that libthr does not support process-scope scheduling,
>then what does the sysctl control in reality? The -d option displays
>"sys or proc scope scheduling".
>
>Jiawei
>
>  
>
libthr does support process scope and system scope thread, it is
controllable by user code, the pthread_attr_setscope() can tune
the scope, however kernel has a sysctl can override user setting,
if thr_scope is zero, the thread scheduling scope is set by user
code,  if it is 1, kernel will force all threads to be process
scope, if it is 2, all threads will be system scope, ignore
user setting, I use it only for debugging purpose.

David Xu



More information about the cvs-all mailing list