I want a similar function similar to the VC++ GetThreadTimes function to work on solaris. I need a monitoring tool to monitor thread and monitor execution time from another thread. Is there a direct way of doing this?
I have found that getrusage() can do this only to get the value of times() for the calling thread. But I what I want to do is monitor the thread times from another thread. My last resort is to modify the implementation of CreateThread to hardwire a sig handler to the thread to be executed. And use the sighandler to grab the data for me. But I have no idea yet if this will work.
Suggestions are welcome.
TIA