Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

What is the difference between Automatic and Automatic (Delayed Start) for a property setting for a Windows service? i.e. what do I gain or lose by setting my service as one or the other?

Running the service on Windows Server 2008 x64

share|improve this question

migrated from stackoverflow.com May 19 '11 at 9:29

This question came from our site for professional and enthusiast programmers.

2 Answers 2

up vote 30 down vote accepted

A service marked as Automatic (Delayed Start) will start shortly after all other services designated as Automatic have been started. In my experience, this means that they are started 1-2 minutes after the computer boots.

The setting is most useful in lessening the "mad rush" for resources when a machine boots.

Note that when you have 20 services all being started at the same time, each will start up slower as it competes with the others for slices of the machine's precious resources (CPU/RAM/Disk/Network). That is, each service takes longer to become available!

If you have a few services that are critical, then you may want to set those few to Automatic and set as many of the others as you can to Automatic (Delayed Start). This will ensure that the critical services get the most resources early and become available sooner, while the non-critical services start a bit later (which by definition is ok).

share|improve this answer
14  
Indeed, after handling the Non-Delayed Start services it will queue a worker thread which has a default delay of 120 seconds, which can be overridden by the AutoStartDelay value in HKLM\SYSTEM\CurrentControlSet\Control. When this worked thread runs the Delayed Start services are handled and when they are done the SCM signals the event \BaseNamedObjects\SC_AutoStartComplete... –  Tom Wijsman May 20 '11 at 23:05

From my understanding, it's simply a delay before launching the service.

Later versions of Windows introduced this to ensure that they didn't trip over each other's feet during the boot process (having a gazillion processes starting up at the same time is not conducive to performance).

The documentation for this feature states that services marked thus will be started "shortly after boot", hopefully once the boot-time-required services have settled down a little.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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