<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: how to get cpu usage in c++ in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-cpu-usage-in-c/m-p/4640158#M676502</link>
    <description>&amp;gt;how to do program get CPU usage in C++&lt;BR /&gt;&lt;BR /&gt;The answer is the same as for C.&lt;BR /&gt;You'll need to scan the various pstat(2) headers in &lt;SYS&gt; and what they include, to see which call gives the info you need.&lt;/SYS&gt;</description>
    <pubDate>Mon, 31 May 2010 11:50:49 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2010-05-31T11:50:49Z</dc:date>
    <item>
      <title>how to get cpu usage in c++</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-cpu-usage-in-c/m-p/4640156#M676500</link>
      <description>I would like to calcuate CPU usage in multiple CPU condition,&lt;BR /&gt;I would like to use API like pst_dynamic&lt;BR /&gt;&lt;BR /&gt;cpu usage=1-CPU IDLE% or USER+NICE+SYS+BLOCK+SWAIT+INTR+SSYS&lt;BR /&gt;&lt;BR /&gt;is any api can calcuate it &lt;BR /&gt;because i use summary all process usage /number of cpu is not ccurate&lt;BR /&gt;&lt;BR /&gt;how to do program get cpu usage in c++&lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 31 May 2010 11:21:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-cpu-usage-in-c/m-p/4640156#M676500</guid>
      <dc:creator>eric wang_2</dc:creator>
      <dc:date>2010-05-31T11:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: how to get cpu usage in c++</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-cpu-usage-in-c/m-p/4640157#M676501</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;I'd look at 'pstat_getprocessor()'.  see the 'pstat(2)' manpages.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 31 May 2010 11:45:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-cpu-usage-in-c/m-p/4640157#M676501</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2010-05-31T11:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: how to get cpu usage in c++</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-cpu-usage-in-c/m-p/4640158#M676502</link>
      <description>&amp;gt;how to do program get CPU usage in C++&lt;BR /&gt;&lt;BR /&gt;The answer is the same as for C.&lt;BR /&gt;You'll need to scan the various pstat(2) headers in &lt;SYS&gt; and what they include, to see which call gives the info you need.&lt;/SYS&gt;</description>
      <pubDate>Mon, 31 May 2010 11:50:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-cpu-usage-in-c/m-p/4640158#M676502</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-05-31T11:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: how to get cpu usage in c++</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-cpu-usage-in-c/m-p/4640159#M676503</link>
      <description>thanks for your reply,&lt;BR /&gt;I would like a workable cpu usage program  example for hpux ,i search for a long time in  web site ,but still have no idea how to do it&lt;BR /&gt;</description>
      <pubDate>Wed, 02 Jun 2010 01:06:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-cpu-usage-in-c/m-p/4640159#M676503</guid>
      <dc:creator>eric wang_2</dc:creator>
      <dc:date>2010-06-02T01:06:57Z</dc:date>
    </item>
    <item>
      <title>Re: how to get cpu usage in c++</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-cpu-usage-in-c/m-p/4640160#M676504</link>
      <description>JRF's pstat_getprocessor returns a pst_processor, see &lt;SYS&gt;.&lt;BR /&gt;&lt;BR /&gt;pst_dynamic also looks like it would give usage by CPU.&lt;BR /&gt;&lt;BR /&gt;&lt;/SYS&gt;</description>
      <pubDate>Wed, 02 Jun 2010 09:59:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-cpu-usage-in-c/m-p/4640160#M676504</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-06-02T09:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: how to get cpu usage in c++</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-cpu-usage-in-c/m-p/4640161#M676505</link>
      <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;&amp;gt; I would like a workable cpu usage program example for hpux ,i search for a long time in web site ,but still have no idea how to do it&lt;BR /&gt;&lt;BR /&gt;The 'pstat(2)' manpages offer some examples, including one using both the 'pst_dynamic' and the 'pst_processor' structures.&lt;BR /&gt;&lt;BR /&gt;You will need to look at the header files (on your system: 'ls -l /usr/include/sys/pstat*' ) and as documented in the manpages for the specific data you can glean.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 02 Jun 2010 11:04:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-cpu-usage-in-c/m-p/4640161#M676505</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2010-06-02T11:04:29Z</dc:date>
    </item>
  </channel>
</rss>

