Skip to main content
confusing second part to the question, merged into the top question
Source Link
init_js
  • 375
  • 2
  • 7
  • 17

Windows 10: What is the process lifecycle in the face of logoffs, switching users, and sleeppower state changes (sleep, hibernate)?

I have a program operation that is initiated when a user is logged on, but it is long-running and non-interactive in nature, and could be completed in the background. I'm confused by the process lifecycle in windows.

Can aany user process reliably continue to run (in the background) in the face of:

  • User signing out
  • User switchingSwitching to a different account (without logoff)
  • User locking the screen
  • Power state switch (sleep/hibernate)

CanThere exist programs that can restart automatically following a simple process be resumedreboot/reopened automaticallypower cycle (i.e. without schedulingg. Edge reopens its tabs after an automatic software update). Are those special cased, or are those simply regular programs hooking into some onpower-restart event or such) after:event API?

  • Wake up from sleep/hibernate
  • Automatic reboot due to an update. (I often find browser tabs reopened in edge after an unexpected reboot. same goes for hyperv vms, which seem to be automatically paused and resumed)

Windows 10: What is the process lifecycle in the face of logoffs, switching users, and sleep?

I have a program operation that is initiated when a user is logged on, but it is long-running and non-interactive in nature, and could be completed in the background. I'm confused by the process lifecycle in windows.

Can a user process reliably continue to run (in the background) in the face of:

  • User signing out
  • User switching to a different account
  • User locking the screen

Can a simple process be resumed/reopened automatically (i.e. without scheduling some on-restart event or such) after:

  • Wake up from sleep/hibernate
  • Automatic reboot due to an update. (I often find browser tabs reopened in edge after an unexpected reboot. same goes for hyperv vms, which seem to be automatically paused and resumed)

Windows 10: What is the process lifecycle in the face of logoffs, switching users, and power state changes (sleep, hibernate)?

I have a program operation that is initiated when a user is logged on, but it is long-running and non-interactive in nature, and could be completed in the background. I'm confused by the process lifecycle in windows.

Can any user process reliably continue to run (in the background) in the face of:

  • User signing out
  • Switching to a different account (without logoff)
  • User locking the screen
  • Power state switch (sleep/hibernate)

There exist programs that can restart automatically following a reboot/power cycle (e.g. Edge reopens its tabs after an automatic software update). Are those special cased, or are those simply regular programs hooking into some power-event API?

deleted 1 character in body
Source Link
init_js
  • 375
  • 2
  • 7
  • 17

I have a program operation that is initiated when a user is logged on, but it is long-running and non-interactive in nature, and could be completed in the background. I'm confused by the process lifecycle in windows.

WillCan a user process reliably continue to run (in the background) in the face of:

  • User signing out
  • User switching to a different account
  • User locking the screen

Can a simple process be resumed/reopened automatically (i.e. without scheduling some on-restart event or such) after:

  • Wake up from sleep/hibernate
  • Automatic reboot due to an update. (I often find browser tabs reopened in edge after an unexpected reboot. same goes for hyperv vms, which seem to be automatically paused and resumed)

I have a program operation that is initiated when a user is logged on, but it is long-running and non-interactive in nature, and could be completed in the background. I'm confused by the process lifecycle in windows.

Will a user process reliably continue to run (in the background) in the face of:

  • User signing out
  • User switching to a different account
  • User locking the screen

Can a simple process be resumed/reopened automatically (i.e. without scheduling some on-restart event or such) after:

  • Wake up from sleep/hibernate
  • Automatic reboot due to an update. (I often find browser tabs reopened in edge after an unexpected reboot. same goes for hyperv vms, which seem to be automatically paused and resumed)

I have a program operation that is initiated when a user is logged on, but it is long-running and non-interactive in nature, and could be completed in the background. I'm confused by the process lifecycle in windows.

Can a user process reliably continue to run (in the background) in the face of:

  • User signing out
  • User switching to a different account
  • User locking the screen

Can a simple process be resumed/reopened automatically (i.e. without scheduling some on-restart event or such) after:

  • Wake up from sleep/hibernate
  • Automatic reboot due to an update. (I often find browser tabs reopened in edge after an unexpected reboot. same goes for hyperv vms, which seem to be automatically paused and resumed)
added 49 characters in body
Source Link
init_js
  • 375
  • 2
  • 7
  • 17

I have a program operation that is initiated when a user is logged on, but it is long-running and non-interactive in nature, and could be completed in the background. I'm confused by the process lifecycle in windows.

Will a user process reliably continue to run (in the background) in the face of:

  • User signing out
  • User switching to a different account
  • User locking the screen

Can a simple process be resumed/reopened automatically (i.e. without scheduling some on-restart event or such) after:

  • Wake up from sleep/hibernate
  • Automatic reboot due to an update. (MS Edge+tabs areI often still openfind browser tabs reopened in edge after sleepan unexpected reboot. same goes for hyperv vms, which areseem to be automatically paused and resumed)

I have a program operation that is initiated when a user is logged on, but it is long-running and non-interactive in nature, and could be completed in the background. I'm confused by the process lifecycle in windows.

Will a user process reliably continue to run (in the background) in the face of:

  • User signing out
  • User switching to a different account
  • User locking the screen

Can a process be resumed/reopened automatically (i.e. without scheduling some on-restart event or such) after:

  • Wake up from sleep/hibernate
  • Automatic reboot due to an update. (MS Edge+tabs are often still open after sleep. same goes for hyperv vms, which are automatically resumed)

I have a program operation that is initiated when a user is logged on, but it is long-running and non-interactive in nature, and could be completed in the background. I'm confused by the process lifecycle in windows.

Will a user process reliably continue to run (in the background) in the face of:

  • User signing out
  • User switching to a different account
  • User locking the screen

Can a simple process be resumed/reopened automatically (i.e. without scheduling some on-restart event or such) after:

  • Wake up from sleep/hibernate
  • Automatic reboot due to an update. (I often find browser tabs reopened in edge after an unexpected reboot. same goes for hyperv vms, which seem to be automatically paused and resumed)
Source Link
init_js
  • 375
  • 2
  • 7
  • 17
Loading