System overhead when creating pthreads?
System overhead when creating pthreads?
- Subject: System overhead when creating pthreads?
- From: Theo Vosse <email@hidden>
- Date: Fri, 25 Nov 2005 12:12:03 +0100
Hi,
I have a multi-threaded Cocoa application which runs a (simulation)
process in a number of threads. The simulation code is supposed to be
portable, so it uses pthreads. It works well, but in the Activity
Monitor I see huge "System activity" whenever the new threads start
(up to 60%). This activity lasts 4 to 5 seconds. When I disable the
thread code (i.e. run the same function sequentially), no such thing
happens.
Does anyone have an idea what might cause this? Is it the mixture of
pthreads with Cocao threads?
Theo
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden