1

How to know a particular thread is running on which core of the processor? And how can I change the cpu core to execution of particular process in Linux?

and here is the system calls to know how many cores are there in current cpu in linux:

sysconf(_SC_NPROCESSORS_ONLN);
Shafik Yaghmour
  • 154,301
  • 39
  • 440
  • 740
sgsudhir
  • 21
  • 1
  • 5

0 Answers0