Hello all.
I have made an application in C using pthreads. My problem is that my program seems to be only using 1 of my cores when I create multiple threads. I have 4 cores (Q9300). I am using Ubuntu 8.04.
I do believe the problem is that on linkage it's using a pthread emulation package rather than the real thing?
Either way how do I solve this problem?
Many thanks.
pthread_set_concurrency ?
Didn't resolve the problem.
What makes you think it is using a pthread emulation package rather than the real thing?
A pthread emulation package that is written to demonstrate 'thread like' behavior would only run uniprocessor in any case, right? I assume they are using some event mechanism for this emulation.
Use real threads for concurrency and smp is the easy answer, otherwise don't worry if
performance is acceptable I guess. My .02.