login about faq

Hi!

I need more than 500 threads. I run 3-4 copies of program to make 1500-2000 threads. Is it possible to run 2000 threads from single program?

Delphi dll.

asked May 28 at 07:30

Striker's gravatar image

Striker
11


I really don't know. You'd have to research the topic. For example, Google "max threads for a Windows program", or something like that.

link

answered May 29 at 17:05

chilkat's gravatar image

chilkat ♦♦
12.7k317362463

By default each thread will reserve 1MB of stack space, so the top value are 2000 threads for win32. I have create 1600 threads before error in win32, and more than 6000 without error in win64. putMaxThreads default value is 100. The maximum value is 500. When i use CkGlobal_putMaxThreads(global,600) , and creates 600 asynchronous tasks, program creates only 500 threads, ignoring 100 extra threads.

link

answered May 30 at 15:20

Striker's gravatar image

Striker
11

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×8
×6

Asked: May 28 at 07:30

Seen: 1,260 times

Last updated: May 30 at 15:20

powered by OSQA