views:

80

answers:

3

How does fast user switching affect a windows service? Are the services suspended? or do they keep running in the background when a different user logs in?

+3  A: 

They keep running; they run as their own users (whatever you set).

Noon Silk
+3  A: 

Windows services run in the background even if no user is logged in. Switching between users should have no impact on a properly written service.

garethm
+6  A: 

On Vista, services run in session 0. This session is always running. User sessions are session 1 on up. Even as users connect and disconnect from sessions, log on to new sessions, and so on, the services keep running and session 0 is never torn down. The only effect on services is they (optionally) receive notifications such as session connect, log on, and so on.

On XP, services run in session 0 and so does the initial user who logs on. This session is never torn down, and may or may not have an interactive user connected to it. Besides this, the behavior is the same as Vista.

Michael