Re: System overhead when creating pthreads?
Re: System overhead when creating pthreads?
- Subject: Re: System overhead when creating pthreads?
- From: Theo Vosse <email@hidden>
- Date: Fri, 25 Nov 2005 14:19:47 +0100
Compare the two ways to run your code with Shark.
It turns out that during the initial 4 seconds of the threads, the
function shandler takes more than 40% of the CPU time. In bottom-up
view, ml_set_interrupts_enabled takes up 23% (which is the same
amount as the "inner loop" function). The culprit seemed to be memory
allocation; now that I've take most of that (logging the values of
individual nodes) out, the overhead of shandler is completely gone. I
don't fully understand why that only mattered the first seconds of
the run, but well...
Thanks for the hint!
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