[Tutor] Running a script in the background

Alan Gauld alan.gauld at btinternet.com
Tue Sep 4 01:57:25 CEST 2012

On 03/09/12 22:46, Dwight Hutto wrote:

> But a script is always running in the background of the OS main console
> of the upfront GUI app users usually see, correct?

Not every OS has a main console behind the GUI, but in the case of *nix 
its true.

On *nix there is a cron daemon that runs in the background.
but one job running in the background controlling dozens(?) of others is 
way more efficient than dozens of programs all running idle in the 
background and periodically springing into action.

> back to a main script in OS runtime checking for processes to run, even
> for other processes, for other processes, etc.

Ultimately it all goes back to the OS scheduler which constantly swaps 
processes in and out of run mode...

Alan G
Author of the Learn to Program web site

More information about the Tutor mailing list