<?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[effizientes multithreading]]></title><description><![CDATA[<p>Hi,</p>
<p>ich moechte folgendes beispiel programmieren:<br />
<a href="http://www.careercup.com/question?id=278718" rel="nofollow">http://www.careercup.com/question?id=278718</a></p>
<p>single threading laueft soweit.<br />
wie kann ich nun das multithreading effizient realisieren? ein thread pool implementieren?</p>
<p>-bjarne</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/328474/effizientes-multithreading</link><generator>RSS for Node</generator><lastBuildDate>Tue, 07 Jul 2026 12:21:11 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/328474.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 12 Oct 2014 13:45:25 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to effizientes multithreading on Sun, 12 Oct 2014 13:45:25 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>ich moechte folgendes beispiel programmieren:<br />
<a href="http://www.careercup.com/question?id=278718" rel="nofollow">http://www.careercup.com/question?id=278718</a></p>
<p>single threading laueft soweit.<br />
wie kann ich nun das multithreading effizient realisieren? ein thread pool implementieren?</p>
<p>-bjarne</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2421833</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2421833</guid><dc:creator><![CDATA[bjarne]]></dc:creator><pubDate>Sun, 12 Oct 2014 13:45:25 GMT</pubDate></item><item><title><![CDATA[Reply to effizientes multithreading on Sun, 12 Oct 2014 14:24:56 GMT]]></title><description><![CDATA[<p>die frage ist:<br />
- wie viele bytes soll jeder thread lesen?<br />
- wie viele threads soll ich erzeugen? (vermutlich mit einem benchmark zu bestimmen...)</p>
<pre><code>std::vector&lt;std::vector&lt;BYTE&gt;&gt; stream_buffer_vec;
unsigned int total_bytes;

do {
  std::cin.read(reinterpret_cast&lt;char*&gt;(&amp;stream_buffer_vec[thread_id][0]), stream_buffer_size);
  total_read = std::cin.gcount();

  // create crypto worker thread: pass the following to the worker thread:
  // - stream_buffer_vec[thread_id]
  // - copy of the current key

  // rotate key
} while (total_read &gt; 0);
</code></pre>
<p>// if worker thread is finished call:<br />
// std::copy(stream_buffer.begin(), stream_buffer.end(), std::ostream_iterator&lt;char&gt;(std::cout));</p>
<p>--bjarne</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2421835</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2421835</guid><dc:creator><![CDATA[bjarne]]></dc:creator><pubDate>Sun, 12 Oct 2014 14:24:56 GMT</pubDate></item><item><title><![CDATA[Reply to effizientes multithreading on Mon, 13 Oct 2014 12:02:30 GMT]]></title><description><![CDATA[<p>hi, kann jemand feedback geben?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2421971</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2421971</guid><dc:creator><![CDATA[bjarne]]></dc:creator><pubDate>Mon, 13 Oct 2014 12:02:30 GMT</pubDate></item><item><title><![CDATA[Reply to effizientes multithreading on Mon, 13 Oct 2014 19:38:13 GMT]]></title><description><![CDATA[<p>Was willst du hören? Probiere es aus.<br />
Sinnvoll ist das sowieso nicht, selbst eine SSD wird hier der Flaschenhals sein, nicht die CPU.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2422047</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2422047</guid><dc:creator><![CDATA[manni66]]></dc:creator><pubDate>Mon, 13 Oct 2014 19:38:13 GMT</pubDate></item></channel></rss>