I usually use nohup to run any task in background in linux
nohup python sss.py &
What is the similar command used to run a background task in windows?
Sort of? In Windows, there's start
which launches another command outside of your current CLI session. The down side is that the process isn't attached in any way to the window you launched it from so you don't get output sharing like you would in Linux.
An alternative to achieve this may be to use something like Cygwin which gives you (most of) bash
on Windows. (Update 2020: Windows 10 has Windows Subsystem for Linux now. This allows you to run a good chunk of Linux on a Windows host.)
start
are stopped when the user signs off, when the screen is locked, or when the console is switched to a different user (i.e. ctrl-alt-del Switch User)?