WCM Forum

WCM Forum (http://www.wcm.at/forum/index.php)
-   Programmierung (http://www.wcm.at/forum/forumdisplay.php?f=17)
-   -   maximale anzahl an threads (http://www.wcm.at/forum/showthread.php?t=62176)

Who-T 07.07.2002 11:16

maximale anzahl an threads
 
nach längerer suche hab ich noch immer nix gefunden zu dem thema:


wieviele threads kann ein c/c++ windows-programm maximal aufmachen?

ich hab ein beispielprogramm aus der msdn, bei dem stehts nach 2010 bis 2016, der grund dafür wird jedoch nirgends erwähnt.

ich bin schon soweit gekommen, dass man unter linux diese zahl umstellen kann und dann den kernel neu kompilieren muss, aber unter windows?

bin für alle antworten dankbar!

Sonic 07.07.2002 23:35

Info aus der MSDN Library zu CreateThread()

Zitat:

Remarks
The number of threads a process can create is limited by the available virtual memory. By default, every thread has one megabyte of stack space. Therefore, you can create at most 2028 threads. If you reduce the default stack size, you can create more threads. However, your application will have better performance if you create one thread per processor and build queues of requests for which the application maintains the context information. A thread would process all requests in a queue before processing requests in the next queue.
Hoffe das beantwortet deine Frage.

lg

Who-T 08.07.2002 08:15

danke, genau das wars, was ich einfach nicht gefunden hab.

Who-T 08.07.2002 13:03

ok, grund warum ich es nicht gefunden hab, ist weil genau der absatz in meiner lokalen msdn-installation fehlt

Sonic 08.07.2002 15:16

Zitat:

Original geschrieben von Who-T
ok, grund warum ich es nicht gefunden hab, ist weil genau der absatz in meiner lokalen msdn-installation fehlt
Das ist natürlich sch*#!!*

Hast warscheinlich noch die alte version die beim VS dabei is? ('98er Jahr)

lg


Alle Zeitangaben in WEZ +2. Es ist jetzt 02:44 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© 2009 FSL Verlag