Linux scheduler history
===

I have a process running on Linux which creates a lot of pThreads (each of them have its own purpose). Let's say by some reason one of threads crashes. Sometimes, crash might be caused by some other thread and it would be good to know what threads were running before the crashed one.

**So the question is:**
Is there a way to ask Linux scheduler what last threads were scheduled?

Any help is really appreciated.
Thanks.