<?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[Multithreading - kennt jemand gute tuts?]]></title><description><![CDATA[<p>Hallo. Ich wollt mal fragen, wer mir unter Umständen gute Tutorials zu MT , besonders bezüglich WINAPI, ans Herz legen kann....<br />
Ich habe zwar eines gefunden....... aber das , was mir da gezeigt wird, klingt, als ob es aus nem &quot;... für Dummies&quot;-Buch käme.....<br />
.<br />
.<br />
<a href="http://www.geocities.com/samuel_super_camel/MultiThreadingTutorial.htm" rel="nofollow">http://www.geocities.com/samuel_super_camel/MultiThreadingTutorial.htm</a></p>
<h2>.<br />
.<br />
Ich shätze mal, es ist etwas komplexer, als hier dargestellt.....<br />
also, hat da jemand gute Infolinks ( ausser MSDN) ????</h2>
<p>Danke schonmal.<br />
Bis denne.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/189077/multithreading-kennt-jemand-gute-tuts</link><generator>RSS for Node</generator><lastBuildDate>Thu, 02 Jul 2026 08:18:30 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/189077.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 08 Aug 2007 10:44:01 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Multithreading - kennt jemand gute tuts? on Wed, 08 Aug 2007 14:01:10 GMT]]></title><description><![CDATA[<p>Hallo. Ich wollt mal fragen, wer mir unter Umständen gute Tutorials zu MT , besonders bezüglich WINAPI, ans Herz legen kann....<br />
Ich habe zwar eines gefunden....... aber das , was mir da gezeigt wird, klingt, als ob es aus nem &quot;... für Dummies&quot;-Buch käme.....<br />
.<br />
.<br />
<a href="http://www.geocities.com/samuel_super_camel/MultiThreadingTutorial.htm" rel="nofollow">http://www.geocities.com/samuel_super_camel/MultiThreadingTutorial.htm</a></p>
<h2>.<br />
.<br />
Ich shätze mal, es ist etwas komplexer, als hier dargestellt.....<br />
also, hat da jemand gute Infolinks ( ausser MSDN) ????</h2>
<p>Danke schonmal.<br />
Bis denne.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1340674</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1340674</guid><dc:creator><![CDATA[me-S-on]]></dc:creator><pubDate>Wed, 08 Aug 2007 14:01:10 GMT</pubDate></item><item><title><![CDATA[Reply to Multithreading - kennt jemand gute tuts? on Thu, 09 Aug 2007 07:53:43 GMT]]></title><description><![CDATA[<p>nein es ist nicht komplexer:</p>
<p>hier ein kleines bespiel:</p>
<pre><code>DWORD WINAPI Action_Thread(LPVOID);

int main()
{
HANDLE thread1=CreateThread(NULL, 0, Action_Thread, NULL, 0, NULL);

getch();
return 0;
}

DWORD WINAPI Action_Thread(LPVOID)
{

	while(true)
	{
             dosomething();
             Sleep(1);
         }
return 0;
}
</code></pre>
<p>schon hast du einen zweiten thread. mit terminatethread(HANDLE,DWORD); kannst du den thread auf wunsch auch wieder beenden.</p>
<p>Man hört des öffteren dass createthread/terminatethread speicherleaks hinterlassen sollen, deswegen sollte _beginthreadex und _endthreadex verwendet werden, kannst dir ja mal anschauen, da musst du eventuell noch process.h includieren.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1341245</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1341245</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Thu, 09 Aug 2007 07:53:43 GMT</pubDate></item><item><title><![CDATA[Reply to Multithreading - kennt jemand gute tuts? on Thu, 09 Aug 2007 12:51:25 GMT]]></title><description><![CDATA[<h2>ja, ich überlegte mir nämlich, das rekursive Füllen meines TreeViews in etwa per Thread auszulagern...... und schätze, das wäre gut, um die GUI interaktionen parall nicht zu unterbrechen ( da das Füllen eines Treeviews bei grossgenügender Dateidichte durchaus dauert).<br />
Aber andere wiederum sagen mir: Beachte die Regel 1Prozess - 1Thread.</h2>
<p>Raff ich nciht, nach diese Regel gäbes es kein Multithreading.... sonder Multitasking ganz normal....... aber ein Thread pro Prozess stellt in meinen Augen keinen Fortschritt da!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1341508</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1341508</guid><dc:creator><![CDATA[me-S-on]]></dc:creator><pubDate>Thu, 09 Aug 2007 12:51:25 GMT</pubDate></item><item><title><![CDATA[Reply to Multithreading - kennt jemand gute tuts? on Thu, 09 Aug 2007 14:00:03 GMT]]></title><description><![CDATA[<p>mit createthread kriegt DEIN prozess einen 2. thread. guck einfach in den taskmanager, sagst er soll dir die threadanzahl anzeigen, dann steht da sicher proc1.exe Threads: 2 <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /><br />
Ja dafür verwende ich auch oft threads, dass die GUI vom Programm eben &quot;weiterläuft&quot; und trotzdem reagiert, auch wenn eben grad was reingeladen wird...<br />
natürlich kann ein prozess mehrere threads haben... eben genau das erreichst du mit createthread().</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1341568</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1341568</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Thu, 09 Aug 2007 14:00:03 GMT</pubDate></item><item><title><![CDATA[Reply to Multithreading - kennt jemand gute tuts? on Thu, 09 Aug 2007 13:59:20 GMT]]></title><description><![CDATA[<p>Such mal bei <a href="http://Codeproject.com" rel="nofollow">Codeproject.com</a></p>
<p>Des weiteren sollte man CreateThread nicht verwenden (wie oft ich das nun schon hier geschrieben habe...), sondern _beginthreadex!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1341572</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1341572</guid><dc:creator><![CDATA[CodeFinder]]></dc:creator><pubDate>Thu, 09 Aug 2007 13:59:20 GMT</pubDate></item><item><title><![CDATA[Reply to Multithreading - kennt jemand gute tuts? on Fri, 10 Aug 2007 10:31:20 GMT]]></title><description><![CDATA[<p>nur wieso keine CreateThread?<br />
Veraltet?<br />
Uzulänglich?<br />
Speicherlecks?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1342109</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1342109</guid><dc:creator><![CDATA[me-SSS-on]]></dc:creator><pubDate>Fri, 10 Aug 2007 10:31:20 GMT</pubDate></item><item><title><![CDATA[Reply to Multithreading - kennt jemand gute tuts? on Fri, 10 Aug 2007 11:23:36 GMT]]></title><description><![CDATA[<p>me-S-on schrieb:</p>
<blockquote>
<p>ja, ich überlegte mir nämlich, das rekursive Füllen meines TreeViews in etwa per Thread auszulagern...</p>
</blockquote>
<p>...nur leider sind die WinAPI-Steuerelemente nicht threadsafe - Das könnte dir Probleme bereiten <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";D"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1342144</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1342144</guid><dc:creator><![CDATA[geeky]]></dc:creator><pubDate>Fri, 10 Aug 2007 11:23:36 GMT</pubDate></item><item><title><![CDATA[Reply to Multithreading - kennt jemand gute tuts? on Fri, 10 Aug 2007 13:04:47 GMT]]></title><description><![CDATA[<p>Moement mal, ne GUI dir eigens für NT zum Teil neugeschrieben wurde , um Multitasking prima zu ermöglichen bietet Elemente an, die nicht &quot;Threadsafe&quot; sind?<br />
Was heist das denn? --- und : Tolle M$-er!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1342204</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1342204</guid><dc:creator><![CDATA[me-sss-on]]></dc:creator><pubDate>Fri, 10 Aug 2007 13:04:47 GMT</pubDate></item><item><title><![CDATA[Reply to Multithreading - kennt jemand gute tuts? on Fri, 10 Aug 2007 16:05:19 GMT]]></title><description><![CDATA[<p>Hier schreiben Leute die nichtmal tippen können darüber mit Threads zu arbeiten. Faszinierend(*). Vielleicht sollte ich mir doch nochmal überlegen ob ich nicht zuhause im Keller mein eigenes Fusionskraftwerk baue...</p>
<p>*: wir brauchen einen Spock-Smiley!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1342314</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1342314</guid><dc:creator><![CDATA[hustbaer]]></dc:creator><pubDate>Fri, 10 Aug 2007 16:05:19 GMT</pubDate></item><item><title><![CDATA[Reply to Multithreading - kennt jemand gute tuts? on Fri, 10 Aug 2007 17:13:10 GMT]]></title><description><![CDATA[<p>me-sss-on schrieb:</p>
<blockquote>
<p>Moement mal, ne GUI dir eigens für NT zum Teil neugeschrieben wurde , um Multitasking prima zu ermöglichen bietet Elemente an, die nicht &quot;Threadsafe&quot; sind?</p>
</blockquote>
<p>für windows-GUI braucht man normalerweise keine threads. deshalb sind die steuerelemente nicht 'per se' threadsafe. wäre es so, würden 90% aller anwendungen überflüssiges zeug mit sich herumschleppen. tja, manchmal ist m$ gar nicht so doof <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1342346</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1342346</guid><dc:creator><![CDATA[Undertaker]]></dc:creator><pubDate>Fri, 10 Aug 2007 17:13:10 GMT</pubDate></item><item><title><![CDATA[Reply to Multithreading - kennt jemand gute tuts? on Wed, 15 Aug 2007 06:09:21 GMT]]></title><description><![CDATA[<h2>ich vertippe mich auch manchmal, drücke zu schnell &quot;abschicken&quot; und muss dann manchmal neu editieren....<br />
aber wenn ich keinen thread dafür brauche ( ich wollte es ja auch nur unter Umständen in nem Thread auslagern.... ) mach ich es ohne und lese nur den nächsten Ordner bei der WM_LMBUTTONDOWN aus, den ich per GetSelection ermittel.<br />
Wird dann wohl speicherschonender.......</h2>
<p>Aber , wenn du das mit dem Fusionskraftwerk ernst meinst... ich wäre mit von der Partie... mich fasziniert vor Allem die Donut-Torus-Form.<br />
<img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";-)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1344714</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1344714</guid><dc:creator><![CDATA[me-S-on]]></dc:creator><pubDate>Wed, 15 Aug 2007 06:09:21 GMT</pubDate></item><item><title><![CDATA[Reply to Multithreading - kennt jemand gute tuts? on Thu, 16 Aug 2007 00:32:51 GMT]]></title><description><![CDATA[<p>Wenn du den Teil mit der Finanzierung übernimmst, dann übernehme ich gerne den Teil wo alles in die Luft fliegt <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
<p>Wobei ich jetzt spontan an den Trashcan-Man denken muss... <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1345431</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1345431</guid><dc:creator><![CDATA[hustbaer]]></dc:creator><pubDate>Thu, 16 Aug 2007 00:32:51 GMT</pubDate></item><item><title><![CDATA[Reply to Multithreading - kennt jemand gute tuts? on Thu, 16 Aug 2007 06:20:59 GMT]]></title><description><![CDATA[<p>Hilfste mir auf die Sprünge?<br />
Das derbste, was mir in Erinnerung ist, ist das Video von Thermit auf <a href="http://orschlurch.de" rel="nofollow">orschlurch.de</a>.<br />
Das Zeug schmlizt alles........</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1345469</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1345469</guid><dc:creator><![CDATA[me-S-on]]></dc:creator><pubDate>Thu, 16 Aug 2007 06:20:59 GMT</pubDate></item></channel></rss>