cpu usage - How to get the CPU information of a process in Linux? -


In my server, many CPUs (0-7) exist. I need to run parallel code, and each process is associated with a CPU, so how do I know CPU information for each process?

For example, if two processes (# 0 and # 1) exist, and the process # 0 uses CPU 5 and process # 1, uses CPU 7.

How do I know whether programming in C or Fortran?

Use

Keep in mind that a process / thread to run on any available CPU / core independently Can be determined, so one of your processes can run one second on Core 1, and the next millisecond on Core 2 allows you to restrict processors (with processor)

Are allowed to walk

Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -