Re: SMP & native threads...

"Simon J. Gerraty" <[email protected]> Fri, 13 Jun 2003 14:08:47 -0700
Newsgroups gmane.os.netbsd.devel.smp
Message-ID <[email protected]>
On Wed, 11 Jun 2003 12:26:15 -0700, Jason Thorpe writes:
>> So two questions:
>> 1.  Is it possible to add a scheduler hack to only allow threaded
>> apps to use one CPU?  E.g. anything doing SA will be forced to cpu0, 
>> while
>> regular processes can use any.
>
>Not really.  But the short-term fix for the problem will likely be 
>"make it so threaded apps can't run on more than one CPU concurrently".

If we had processor affinity - as someone just asked about,
it would be a simple addition to set said affinity when initializing
the threads - says he who has not looked at any of the code in
question ;-)

--sjg