Any pointers or experiences to share?
Best -Federico
_________________________________________
-- "'Problem' is a bleak word for challenge" - Richard Fish
(Federico L. Lucifredi) - http://www.lucifredi.com
Hm. I guess I don't really follow the question.
Thanks,
Roman.
The attendee wanted a tool like the Netbeans thread debugger for
deadlocks, only under pthreads...
Best -F
Sun Studio 12 has this thing called Thread Analyzer. It runs
on both Solaris and Linux and can be of a help sometimes. Intel
of course has Thread Checker which is an option as well. I would
love to hear about any kind of open source solution in this
area, but currently I don't know of any.
Thanks,
Roman.
-- --------------------------------------------------------------- Mike Anderson 703.585.9384 CTO/Chief Scientist mi...@ThePTRGroup.com www.ThePTRGroup.com Embedded, Real-Time Solutions --------------------------------------------------------------- "Software development is like making a baby. You can't make a baby in one month by impregnating nine women. Some things just take time."
I'm pretty sure valgrind can help you with that.
Federico
Mike Anderson wrote:
> However, if you're running on a multi-core, then threads can migrate
> from one processor to another. This means that if you
> run with alternate priorities, then even though a thread is a lower
> priority, it could still potentially run on the alternate
> processor core. Here, LTTng would at least be able to tell you which
> core any potential thread is running on.
Conceivably, you could use CPU affinity to bind the threads to specific
cores, as you would for processes, I am correct?
Best -F
That should be possible, indeed. Although the API can really use
some polishing (that's one of the areas where we had to suffer when
we ported an OpenMP runtime library from Solaris to Linux).
Thanks,
Roman.