Question about multi-processing, multi-threading...
Question about multi-processing, multi-threading...
- Subject: Question about multi-processing, multi-threading...
- From: Thierry Bucco <email@hidden>
- Date: Wed, 21 Jan 2004 17:38:37 +0100
Hi,
I have written a little C program who execute an infinite loop.
When I launch process viewer, I can see that my 2 processors are busy.
(60%, 40%).
I was thinking that if an application was not multi threaded (like my
little exemple), the task was rans on only 1 procesor, it seems that
it's wrong.
But If I change my source code, to execute 2 infinite loops in a forked
process, my processors are very busy (100%, 100%).
Is there a way to force a thread to run on the second processor ?
Could you give me some informations about scheduling on OS X ?
Thanks.
Thierry
iconless.com
--
From March, I will be in Montreal-Canada (as a permanent resident), if
you know a cool MacOS X company which is looking for a cool MacOS X
developer, please send me an email...
http://www.iconless.com/site/aboutme/resume.html
--
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.