While the subprocess carries out its own work behind the scenes. That is, the process that created the subprocess can go on to work on other things However, these processes, known as subprocesses, run as completely independentĮntities-each with their own private system state and main thread of execution.īecause a subprocess is independent, it executes concurrently with the original process. The os or subprocess modules such as os.fork(), subprocess.Popen(), etc. At any given time,Ī program can create new processes using library functions such as those found in Normally, a process executes statements one after the other in a single sequence of controlįlow, which is sometimes called the main thread of the process. Includes memory, lists of open files, a program counter that keeps track of the instructionīeing executed, and a call stack used to hold the local variables of functions. Each process has its own system state, which
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |