What kernel does my process work in?

I am currently in the parallel programming class, and our first programming exercise was to create four threads that displayed a hi-world, like a message. I would like to know in which cores the threads work. I tried using the TOP command on Unix to display all processes, and I see 5 different threads, but I don’t know how to find out which kernels start each thread.

+3
source share
1 answer

The j field above,, Pshows you which kernel the thread / process was working from.

+8
source

Source: https://habr.com/ru/post/1728325/


All Articles