When I "top" I see the following:
PID COMMAND %CPU TIME #TH 7867 perl5.10.0 96.6 26:15:19 8/6
(where #TH: total number of threas/number of running threads)

I would interpret that to mean that at the moment in time when you ran the command, 6 of your 8 threads were running concurrently, and between them they were using 96% of your total cpu capacity.

In other words, if you have a single threaded process running flat out on a single core, I would expect the highest %cpu value shown to be 100/8 = 12.5%.

The fact that at the instance that the command ran, only 6 of 8 threads was actually using a core, just means that in that brief instance, some other higher priority processes--like your display driver, or your network driver, or your disk driver--needed to do something.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

In reply to Re^3: Threads Mac Os x by BrowserUk
in thread Threads Mac Os x by vinay052003

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.