1

I have a very trivial question but I couldn't get any answer in Google.

As far as I know there is a limit of maximum processes a user can create. How can I get this variable into C++?

I am using Visual C++ , Visual Studio 2013.

Thanks in adcance.

emredmrl
  • 103
  • 1
  • 3
  • 9
  • http://stackoverflow.com/questions/17472389/how-to-increase-the-maximum-number-of-child-processes-that-can-be-spawned-by-a-w seems relevant – Cheers and hth. - Alf Dec 15 '13 at 19:27
  • 4
    Windows doesn't have baked-in limits like that. As memory allows. If you need to know then you're doing it wrong. – Hans Passant Dec 15 '13 at 19:37
  • 1
    If [`CreateProcess`](http://msdn.microsoft.com/en-us/library/windows/desktop/ms682425.aspx) fails it reports an error by returning zero. This is all the information you will get, and frankly, I cannot possibly think of a scenario where this is not enough. I guess the question occured after you opted for the wrong solution, as hinted to by @Hans already. – IInspectable Dec 15 '13 at 20:00

1 Answers1

4

I dont think there is any such uppper limit however that may depend on your virtual stack space.

You may also check Pushing the Limits of Windows: Processes and Threads

Rahul Tripathi
  • 168,305
  • 31
  • 280
  • 331