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,137
  • 2
  • 10
  • 25
Dev2017
  • 837
  • 7
  • 29

0 Answers0