2

So I want to get the cpu time used by a thread given its ID. getrusage is not applicable here as getrusage(RUSAGE_THREAD, &r_usage); returns the resources used by the thread that calls it, here I want to get resources of a thread other than the one I am in.

Rama
  • 3,222
  • 2
  • 11
  • 26
Dev2017
  • 857
  • 9
  • 31

0 Answers0