Pthreads and top command

Hi All,

-- Simple question/Sanity check --
When running a multithreaded program, with Pthreads, and observing it with the linux top command, I should see %CPU go above 100%, right? Would I ever expect to see multiple versions of my program never exceeding 100%?

-- More Detail --
I have been running an MPI program and wanted to use Pthreads to process some of the data in parallel. I noticed a big slow down when I added in Pthreads. I also noticed that the top command only ever show 99% usage on one program. Think it may be related to this ( Anyone else have an idea why this could be? Background thread only loads and preprocess the data, only briefly holds a mutex.

Topic archived. No new replies allowed.