• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Question about multi-processing, multi-threading...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Question about multi-processing, multi-threading...
      • From: Chris Hanson <email@hidden>
    • Re: Question about multi-processing, multi-threading...
      • From: Shawn Erickson <email@hidden>
  • Prev by Date: Re: Preloading sounds
  • Next by Date: Re: Tool for seeing view hierarchies at runtime?
  • Previous by thread: Re: Small animation
  • Next by thread: Re: Question about multi-processing, multi-threading...
  • Index(es):
    • Date
    • Thread