Page 1 of 1

Single Threading on MacOSX

Posted: Mon Sep 21, 2009 2:22 pm
by bagheraa
Hello.

Is it possible to force Single Threading on MacOSX?

I want to to build a program with gflSDK that runs on the background on a Mac with 8 cores. On a similar PC machine the program uses only one processor, lefting the machine free for use with other applications. But on MacOSX gflSDK seems to run on multithreading, using all the processors availables, making it impossible to share the system with other progams.

Is it possible to change this behaviour on Mac systems?

Thanks.
Enrique.

Re: Single Threading on MacOSX

Posted: Mon Sep 21, 2009 3:56 pm
by xnview
GFLSDK use one thread

Re: Single Threading on MacOSX

Posted: Mon Sep 21, 2009 5:41 pm
by bagheraa
What can be the problem then? Can you tell me anything else?

Thanks.
Enrique.

Re: Single Threading on MacOSX

Posted: Tue Sep 22, 2009 6:45 am
by xnview
bagheraa wrote:What can be the problem then? Can you tell me anything else?
I don't know, if you don't use multi thread with GFLSDK, so only one thread will be used...

Re: Single Threading on MacOSX

Posted: Tue Sep 22, 2009 5:47 pm
by dominique
I have the same behaviour on a XP machine : we can't say how the OS choose to run a thread on a given core.

Re: Single Threading on MacOSX

Posted: Wed Sep 23, 2009 7:32 am
by xnview
dominique wrote:I have the same behaviour on a XP machine : we can't say how the OS choose to run a thread on a given core.
Yes, but if you don't use thread, your app use only one core :-)