sched_4BSD

Julian Elischer julian at elischer.org
Wed Mar 2 19:43:56 GMT 2005



Lucas Holt wrote:

> Wouldn't a multi threaded program potentially need more cpu time than 
> vi?  Multithreaded apps are created to do a lot of computation or 
> because they have a lot of concurrent activity that might block right?

Isn't that what nice is for?

if (only) two processes are using all the cpu they can get, and one is 
written using 1000 threads,
then  why should it get 1000/1001 of the cpu?

>
>
> On Mar 1, 2005, at 2:49 PM, Julian Elischer wrote:
>
>>>
>>
>> If you make 1000 threads, you get 1000 slots on the scheduler. (last 
>> time I looked..
>> Let me know if I'm wrong).
>>
>> The guy next to you with 'vi' gets 1 slot..
>> who gets more cpu?
>>
>
> Lucas Holt
> Luke at FoolishGames.com
> ________________________________________________________
> FoolishGames.com  (Jewel Fan Site)
> JustJournal.com (Free blogging)
> FoolishGames.net (Enemy Territory IoM site)



More information about the freebsd-hackers mailing list