I want to play around with threading and parallelism. I know my processor has multiple cores, but do not know how to see what is happening on each of them. What is the right way to access this information?
More concretely, I am planning the following: I imagine writing a little program that launches several threads, these threads should then be spread over the cores and communicate with each other where needed. I would like to be able to observe where which thread is running, any hints?
I am completely new to trying this kind of thing (I would also be quite happy with any information related to this that does not directly address this question).
(googling only got me to "cat /proc/cpuinfo", which seems to tell me I have 7 processors. This is not a true fact, which tells me I do not know how to read this output.)