<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[boost::threads verwenden doch mehr als nur 1 Core?]]></title><description><![CDATA[<p>Ich habe ein Programm parallelisiert indem ich mehere boost::threads gebaut habe. Das Programm läuft soweit ich weiß auf einem 16-Kerner (zumindest nach &quot;cat /proc/cpuinfo&quot;). Wenn ich nun &quot;top&quot; ausführe oder ein &quot;ps aux | grep benutzername&quot; mache, dann wird aber das Programm, das ich ausführe, nur einmal angezeigt.</p>
<p>Laufen diese Threads nun parallel auf die Cores verteilt oder nur pseudo-parallel auf einem Core?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/271321/boost-threads-verwenden-doch-mehr-als-nur-1-core</link><generator>RSS for Node</generator><lastBuildDate>Sat, 29 Aug 2026 14:54:53 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/271321.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 26 Jul 2010 14:28:45 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to boost::threads verwenden doch mehr als nur 1 Core? on Mon, 26 Jul 2010 14:28:45 GMT]]></title><description><![CDATA[<p>Ich habe ein Programm parallelisiert indem ich mehere boost::threads gebaut habe. Das Programm läuft soweit ich weiß auf einem 16-Kerner (zumindest nach &quot;cat /proc/cpuinfo&quot;). Wenn ich nun &quot;top&quot; ausführe oder ein &quot;ps aux | grep benutzername&quot; mache, dann wird aber das Programm, das ich ausführe, nur einmal angezeigt.</p>
<p>Laufen diese Threads nun parallel auf die Cores verteilt oder nur pseudo-parallel auf einem Core?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1932066</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1932066</guid><dc:creator><![CDATA[HändyÄndy]]></dc:creator><pubDate>Mon, 26 Jul 2010 14:28:45 GMT</pubDate></item><item><title><![CDATA[Reply to boost::threads verwenden doch mehr als nur 1 Core? on Mon, 26 Jul 2010 14:31:31 GMT]]></title><description><![CDATA[<p>wenn du keinen mist gebaut hast, dann laufen die natürlich nicht nur auf einen Core</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1932067</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1932067</guid><dc:creator><![CDATA[dubistes]]></dc:creator><pubDate>Mon, 26 Jul 2010 14:31:31 GMT</pubDate></item><item><title><![CDATA[Reply to boost::threads verwenden doch mehr als nur 1 Core? on Mon, 26 Jul 2010 14:32:52 GMT]]></title><description><![CDATA[<p>Thread != Prozess</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1932070</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1932070</guid><dc:creator><![CDATA[prothread]]></dc:creator><pubDate>Mon, 26 Jul 2010 14:32:52 GMT</pubDate></item><item><title><![CDATA[Reply to boost::threads verwenden doch mehr als nur 1 Core? on Mon, 26 Jul 2010 14:34:50 GMT]]></title><description><![CDATA[<p>Mein Programm läuft einwandfrei.</p>
<p>Wie kann ich rausfinden, ob mein Programm mehr als nur einen Kern verwendet?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1932071</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1932071</guid><dc:creator><![CDATA[HändyÄndy]]></dc:creator><pubDate>Mon, 26 Jul 2010 14:34:50 GMT</pubDate></item><item><title><![CDATA[Reply to boost::threads verwenden doch mehr als nur 1 Core? on Mon, 26 Jul 2010 14:58:32 GMT]]></title><description><![CDATA[<p>HändyÄndy schrieb:</p>
<blockquote>
<p>Mein Programm läuft einwandfrei.</p>
<p>Wie kann ich rausfinden, ob mein Programm mehr als nur einen Kern verwendet?</p>
</blockquote>
<p>Du kannst dir zum Beispiel mit top die Kern-Auslastung anzeigen lassen ('1' drücken, während top läuft). Damit siehst du zwar nicht, welcher Prozess welche CPU belegt, aber wenn dein Programm das einzige sein sollte und trotzdem mehrere Kerne beschäftigt sind, kannst du dir den Rest denken.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1932088</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1932088</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Mon, 26 Jul 2010 14:58:32 GMT</pubDate></item><item><title><![CDATA[Reply to boost::threads verwenden doch mehr als nur 1 Core? on Mon, 26 Jul 2010 15:03:26 GMT]]></title><description><![CDATA[<p>Ich bin mir jetzt nicht sicher, wie ich deise Ausgabe von top verstehen soll.</p>
<p>Was bedeutet us, sy, id,..., st etc ?</p>
<blockquote>
<p>top - 17:01:32 up 14 days, 21:45, 12 users, load average: 4.05, 2.85, 2.62<br />
Tasks: 277 total, 2 running, 275 sleeping, 0 stopped, 0 zombie<br />
Cpu0 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st<br />
Cpu1 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st<br />
Cpu2 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st<br />
Cpu3 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st<br />
Cpu4 : 0.3%us, 3.0%sy, 0.0%ni, 72.3%id, 13.3%wa, 0.0%hi, 11.0%si, 0.0%st<br />
Cpu5 : 0.0%us, 2.0%sy, 0.0%ni, 84.0%id, 0.3%wa, 0.3%hi, 13.3%si, 0.0%st<br />
Cpu6 : 0.0%us, 0.7%sy, 0.0%ni, 98.7%id, 0.3%wa, 0.0%hi, 0.3%si, 0.0%st<br />
Cpu7 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st<br />
Cpu8 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st<br />
Cpu9 : 0.3%us, 0.3%sy, 0.0%ni, 99.3%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st<br />
Cpu10 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st<br />
Cpu11 : 0.0%us, 0.3%sy, 0.0%ni, 96.0%id, 3.7%wa, 0.0%hi, 0.0%si, 0.0%st<br />
Cpu12 : 9.0%us, 10.3%sy, 0.0%ni, 0.3%id, 73.0%wa, 1.0%hi, 6.3%si, 0.0%st<br />
Cpu13 : 0.0%us, 1.7%sy, 0.0%ni, 83.3%id, 4.0%wa, 0.3%hi, 10.7%si, 0.0%st<br />
Cpu14 : 0.0%us, 2.3%sy, 0.0%ni, 75.7%id, 12.0%wa, 0.3%hi, 9.6%si, 0.0%st<br />
Cpu15 : 0.0%us, 1.0%sy, 0.0%ni, 88.4%id, 0.0%wa, 0.7%hi, 9.9%si, 0.0%st<br />
Mem: 49449524k total, 48251532k used, 1197992k free, 121652k buffers<br />
Swap: 51511288k total, 280k used, 51511008k free, 46656748k cached</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/1932091</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1932091</guid><dc:creator><![CDATA[HändyÄndy]]></dc:creator><pubDate>Mon, 26 Jul 2010 15:03:26 GMT</pubDate></item><item><title><![CDATA[Reply to boost::threads verwenden doch mehr als nur 1 Core? on Mon, 26 Jul 2010 15:04:09 GMT]]></title><description><![CDATA[<p>HändyÄndy schrieb:</p>
<blockquote>
<p>Mein Programm läuft einwandfrei.</p>
<p>Wie kann ich rausfinden, ob mein Programm mehr als nur einen Kern verwendet?</p>
</blockquote>
<p>man top</p>
<p>Das sollte dir zeigen, dass mit H die Threadanzeige ein- und ausgeschaltet werden kann.</p>
<p>Lars</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1932092</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1932092</guid><dc:creator><![CDATA[manni66]]></dc:creator><pubDate>Mon, 26 Jul 2010 15:04:09 GMT</pubDate></item><item><title><![CDATA[Reply to boost::threads verwenden doch mehr als nur 1 Core? on Mon, 26 Jul 2010 15:07:43 GMT]]></title><description><![CDATA[<p>HändyÄndy schrieb:</p>
<blockquote>
<p>Ich bin mir jetzt nicht sicher, wie ich deise Ausgabe von top verstehen soll.</p>
<p>Was bedeutet us, sy, id,..., st etc ?</p>
<blockquote>
<p>top - 17:01:32 up 14 days, 21:45, 12 users, load average: 4.05, 2.85, 2.62<br />
Tasks: 277 total, 2 running, 275 sleeping, 0 stopped, 0 zombie<br />
Cpu0 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st<br />
Cpu1 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st<br />
Cpu2 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st<br />
Cpu3 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st<br />
Cpu4 : 0.3%us, 3.0%sy, 0.0%ni, 72.3%id, 13.3%wa, 0.0%hi, 11.0%si, 0.0%st<br />
Cpu5 : 0.0%us, 2.0%sy, 0.0%ni, 84.0%id, 0.3%wa, 0.3%hi, 13.3%si, 0.0%st<br />
Cpu6 : 0.0%us, 0.7%sy, 0.0%ni, 98.7%id, 0.3%wa, 0.0%hi, 0.3%si, 0.0%st<br />
Cpu7 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st<br />
Cpu8 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st<br />
Cpu9 : 0.3%us, 0.3%sy, 0.0%ni, 99.3%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st<br />
Cpu10 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st<br />
Cpu11 : 0.0%us, 0.3%sy, 0.0%ni, 96.0%id, 3.7%wa, 0.0%hi, 0.0%si, 0.0%st<br />
Cpu12 : 9.0%us, 10.3%sy, 0.0%ni, 0.3%id, 73.0%wa, 1.0%hi, 6.3%si, 0.0%st<br />
Cpu13 : 0.0%us, 1.7%sy, 0.0%ni, 83.3%id, 4.0%wa, 0.3%hi, 10.7%si, 0.0%st<br />
Cpu14 : 0.0%us, 2.3%sy, 0.0%ni, 75.7%id, 12.0%wa, 0.3%hi, 9.6%si, 0.0%st<br />
Cpu15 : 0.0%us, 1.0%sy, 0.0%ni, 88.4%id, 0.0%wa, 0.7%hi, 9.9%si, 0.0%st<br />
Mem: 49449524k total, 48251532k used, 1197992k free, 121652k buffers<br />
Swap: 51511288k total, 280k used, 51511008k free, 46656748k cached</p>
</blockquote>
</blockquote>
<p>Das bedeutet übrigens, dass dein Programm die ganze Zeit am Warten ist. Parallelisiert wohl nicht so gut, dein Algorithmus?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1932096</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1932096</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Mon, 26 Jul 2010 15:07:43 GMT</pubDate></item><item><title><![CDATA[Reply to boost::threads verwenden doch mehr als nur 1 Core? on Mon, 26 Jul 2010 15:10:00 GMT]]></title><description><![CDATA[<p>Jo danke, wenn ich top eingebe und dann H, werden tatsächliche alle drei Threads angezeigt, die ich ausführe.</p>
<p>Trotzdem, wie ist die Ausgabe von top + 1 zu verstehen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1932099</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1932099</guid><dc:creator><![CDATA[HändyÄndy]]></dc:creator><pubDate>Mon, 26 Jul 2010 15:10:00 GMT</pubDate></item><item><title><![CDATA[Reply to boost::threads verwenden doch mehr als nur 1 Core? on Mon, 26 Jul 2010 15:12:20 GMT]]></title><description><![CDATA[<p>Ja, mein Programm sollte erwartungsgemäß viel Zeit mit Warten verbringen, so soll das auch sein. Außerdem laufen zur Zeit nur 3 Threads. Das wird sich noch ändern.</p>
<p>Was bedeute jetzt us, sy, id,..., st etc? id vermutlich idle?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1932102</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1932102</guid><dc:creator><![CDATA[HändyÄndy]]></dc:creator><pubDate>Mon, 26 Jul 2010 15:12:20 GMT</pubDate></item><item><title><![CDATA[Reply to boost::threads verwenden doch mehr als nur 1 Core? on Mon, 26 Jul 2010 15:13:44 GMT]]></title><description><![CDATA[<p>HändyÄndy schrieb:</p>
<blockquote>
<p>Ja, mein Programm sollte erwartungsgemäß viel Zeit mit Warten verbringen, so soll das auch sein. Außerdem laufen zur Zeit nur 3 Threads. Das wird sich noch ändern.</p>
<p>Was bedeute jetzt us, sy, id,..., st etc? id vermutlich idle?</p>
</blockquote>
<p>wa = Waiting for I/O<br />
us = User space<br />
sy = system/kernel<br />
ni = Nice Process<br />
id = Idle<br />
hi = Hardware Interrupts<br />
si = Software Interrupts</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1932106</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1932106</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Mon, 26 Jul 2010 15:13:44 GMT</pubDate></item><item><title><![CDATA[Reply to boost::threads verwenden doch mehr als nur 1 Core? on Mon, 26 Jul 2010 15:29:52 GMT]]></title><description><![CDATA[<p>Danke!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1932113</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1932113</guid><dc:creator><![CDATA[HändyÄndy]]></dc:creator><pubDate>Mon, 26 Jul 2010 15:29:52 GMT</pubDate></item><item><title><![CDATA[Reply to boost::threads verwenden doch mehr als nur 1 Core? on Mon, 26 Jul 2010 15:41:47 GMT]]></title><description><![CDATA[<p>HändyÄndy schrieb:</p>
<blockquote>
<p>Ja, mein Programm sollte erwartungsgemäß viel Zeit mit Warten verbringen, so soll das auch sein.</p>
</blockquote>
<p>Gute Arbeit. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f44d.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--thumbs_up"
      title=":+1:"
      alt="👍"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1932117</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1932117</guid><dc:creator><![CDATA[top belegt.]]></dc:creator><pubDate>Mon, 26 Jul 2010 15:41:47 GMT</pubDate></item></channel></rss>