<?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[Thread erzeugen]]></title><description><![CDATA[<p>hi</p>
<p>Hi möchte einen Thread erzeugen in dem die Funktion X ausgeführt wird erzeugen nun hab ich mir die hilfe angesehn da Stand:</p>
<blockquote>
<p>unsigned long _beginthreadex(<br />
void *__security_attr,<br />
unsigned __stksize,<br />
unsigned (__stdcall *__start)(void *),<br />
void *__arg,<br />
unsigned __create_flags,<br />
unsigned *__thread_id);</p>
</blockquote>
<p>Was mich &quot;etwas&quot; verwirrt hat</p>
<p>Könnte das vielleicht irgendjemand für mich aufschlüsseln was ich wohin schreiben musss.</p>
<p>mfg ProgGger</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/164117/thread-erzeugen</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Jul 2026 09:44:01 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/164117.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 05 Nov 2006 12:27:09 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Thread erzeugen on Sun, 05 Nov 2006 12:27:09 GMT]]></title><description><![CDATA[<p>hi</p>
<p>Hi möchte einen Thread erzeugen in dem die Funktion X ausgeführt wird erzeugen nun hab ich mir die hilfe angesehn da Stand:</p>
<blockquote>
<p>unsigned long _beginthreadex(<br />
void *__security_attr,<br />
unsigned __stksize,<br />
unsigned (__stdcall *__start)(void *),<br />
void *__arg,<br />
unsigned __create_flags,<br />
unsigned *__thread_id);</p>
</blockquote>
<p>Was mich &quot;etwas&quot; verwirrt hat</p>
<p>Könnte das vielleicht irgendjemand für mich aufschlüsseln was ich wohin schreiben musss.</p>
<p>mfg ProgGger</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1168802</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1168802</guid><dc:creator><![CDATA[ProgGger]]></dc:creator><pubDate>Sun, 05 Nov 2006 12:27:09 GMT</pubDate></item><item><title><![CDATA[Reply to Thread erzeugen on Sun, 05 Nov 2006 12:32:48 GMT]]></title><description><![CDATA[<p>ab indie winapi</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1168810</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1168810</guid><dc:creator><![CDATA[@mods]]></dc:creator><pubDate>Sun, 05 Nov 2006 12:32:48 GMT</pubDate></item><item><title><![CDATA[Reply to Thread erzeugen on Sun, 05 Nov 2006 13:25:38 GMT]]></title><description><![CDATA[<p>Dieser Thread wurde von Moderator/in <a href="http://www.c-plusplus.net/forum/profile.php?mode=viewprofile&amp;u=403" rel="nofollow">HumeSikkins</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/viewforum.php?f=15" rel="nofollow">C++</a> in das Forum <a href="http://www.c-plusplus.net/forum/viewforum.php?f=4" rel="nofollow">WinAPI</a> verschoben.</p>
<p>Im Zweifelsfall bitte auch folgende Hinweise beachten:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic.php?t=39405" rel="nofollow">C/C++ Forum :: FAQ - Sonstiges :: Wohin mit meiner Frage?</a></p>
<p><em>Dieses Posting wurde automatisch erzeugt.</em></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1168854</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1168854</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Sun, 05 Nov 2006 13:25:38 GMT</pubDate></item><item><title><![CDATA[Reply to Thread erzeugen on Sun, 05 Nov 2006 14:24:39 GMT]]></title><description><![CDATA[<p>Also spontan würde ich da mal an CreateThread denken...</p>
<p>Schau mal hier:<br />
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/createthread.asp" rel="nofollow">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/createthread.asp</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1168903</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1168903</guid><dc:creator><![CDATA[SALOMON]]></dc:creator><pubDate>Sun, 05 Nov 2006 14:24:39 GMT</pubDate></item><item><title><![CDATA[Reply to Thread erzeugen on Sun, 05 Nov 2006 15:10:50 GMT]]></title><description><![CDATA[<p>Reicht Dir das Beispiel hier nicht!?<br />
<a href="http://msdn2.microsoft.com/kdzttdcb" rel="nofollow">http://msdn2.microsoft.com/kdzttdcb</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1168929</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1168929</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Sun, 05 Nov 2006 15:10:50 GMT</pubDate></item><item><title><![CDATA[Reply to Thread erzeugen on Sun, 05 Nov 2006 15:50:37 GMT]]></title><description><![CDATA[<p>@ProgGger:</p>
<pre><code class="language-cpp">unsigned long _beginthreadex(         // Return-Wert: Handle zum erstellten-Thread
          void* pvSecurityAttributes, // Standard: NULL
          unsigned int uiStackSize,   // Standard: 0 (wird vom Compiler autom. gesetzt)
          unsigned (__stdcall *__start)(void *), // Thread-Prozedur, Syntax: unsigned int __stdcall ThreadProc(void* pvData);
          void* pvThreadArguments,    // Daten die an die ThreadProc übergeben werden (-&gt; pvData)
          unsigned int uiCreateFlags, // Anfangs-Zustand des Threads; 0 -&gt; gestartet, 1 -&gt; pausiert
          unsigned int* puiThreadID); // ID des erstellten Thread
</code></pre>
<p>SALOMON schrieb:</p>
<blockquote>
<p>Also spontan würde ich da mal an CreateThread denken...</p>
<p>Schau mal hier:<br />
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/createthread.asp" rel="nofollow">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/createthread.asp</a></p>
</blockquote>
<p>Nein, diese Funktion sollte auf keinen Fall mehr verwendet werden...Da kann es Memory-Leaks beim Aufruf geben.</p>
<p>Außerdem:</p>
<blockquote>
<p>A thread in an executable that calls the C run-time library (CRT) should use the _beginthreadex and _endthreadex functions for thread management rather than CreateThread and ExitThread; this requires the use of the multi-threaded version of the CRT. If a thread created using CreateThread calls the CRT, the CRT may terminate the process in low-memory conditions.</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/1168952</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1168952</guid><dc:creator><![CDATA[CodeFinder]]></dc:creator><pubDate>Sun, 05 Nov 2006 15:50:37 GMT</pubDate></item><item><title><![CDATA[Reply to Thread erzeugen on Sun, 05 Nov 2006 16:48:40 GMT]]></title><description><![CDATA[<p>CodeFinder schrieb:</p>
<blockquote>
<p>Da kann es Memory-Leaks beim Aufruf geben.</p>
</blockquote>
<p>Beim Aufruf gibt es keine Memory-Leaks. Es gibt auch keine wenn man den Thread mit &quot;_endthread&quot; beendet. Nur wenn Du einfach &quot;return&quot; aufrufst, gibt es ein Leak (vorausgesetzt Du hast auch CRT Funktionen verwendet, wenn diese auch intern die Per-Thread-Daten initialisiert haben).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1168995</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1168995</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Sun, 05 Nov 2006 16:48:40 GMT</pubDate></item><item><title><![CDATA[Reply to Thread erzeugen on Sun, 05 Nov 2006 16:54:12 GMT]]></title><description><![CDATA[<p>Jochen Kalmbach schrieb:</p>
<blockquote>
<p>CodeFinder schrieb:</p>
<blockquote>
<p>Da kann es Memory-Leaks beim Aufruf geben.</p>
</blockquote>
<p>Beim Aufruf gibt es keine Memory-Leaks. Es gibt auch keine wenn man den Thread mit &quot;_endthread&quot; beendet. Nur wenn Du einfach &quot;return&quot; aufrufst, gibt es ein Leak (vorausgesetzt Du hast auch CRT Funktionen verwendet, wenn diese auch intern die Per-Thread-Daten initialisiert haben).</p>
</blockquote>
<p>Hm jops, deswegen ja 'kann' <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="😉"
    /> ... Hab den Artikel dazu leider nit mehr gefunden...</p>
<p>PS: Du hast übrigens Post <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/1169000</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1169000</guid><dc:creator><![CDATA[CodeFinder]]></dc:creator><pubDate>Sun, 05 Nov 2006 16:54:12 GMT</pubDate></item><item><title><![CDATA[Reply to Thread erzeugen on Sun, 05 Nov 2006 16:56:03 GMT]]></title><description><![CDATA[<p>CodeFinder schrieb:</p>
<blockquote>
<p>PS: Du hast übrigens Post <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>
</blockquote>
<p>Du auch <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/1169002</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1169002</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Sun, 05 Nov 2006 16:56:03 GMT</pubDate></item><item><title><![CDATA[Reply to Thread erzeugen on Sun, 05 Nov 2006 17:39:57 GMT]]></title><description><![CDATA[<p>Jochen Kalmbach schrieb:</p>
<blockquote>
<p>CodeFinder schrieb:</p>
<blockquote>
<p>PS: Du hast übrigens Post <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>
</blockquote>
<p>Du auch <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>
</blockquote>
<p>Jop, schon gesehen, u 2 <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>
]]></description><link>https://www.c-plusplus.net/forum/post/1169044</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1169044</guid><dc:creator><![CDATA[CodeFinder]]></dc:creator><pubDate>Sun, 05 Nov 2006 17:39:57 GMT</pubDate></item></channel></rss>