1

Does any one know the specifics of how Windows handles starting a large number of services that are independent of each other?

For example say I have one hundred non-trivial services that need to start but there is no hierarchy to them. Will Windows try to start them all at once or is there built-in throttling to control how many are started at one time? Is there a way to determine what the throttle limit is or is it dynamic based on system load?

  • Mark Russinovich wrote a pair of articles titled "Inside Win32 Services," which are still available. He outlines, among other things, how the SCM starts services. – Patrick Seymour Jul 7 '18 at 21:25
0

sc config [service name] depend=

That will set up service dependencies. You can also set delay times for startup. The command has documentation on all of those switches.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.