Sunday, December 30, 2018

The subprocess module

The sub-process module allows us to spawn processes, connect to their input/output/error pipes, and obtain their return codes. sub-process should be used for accessing system commands. With sub-process you can suppress the output, which is very handy when you want to run a system call but are not interested about the standard output.  The subprocess.call method() The subprocess.call...
Share:

Friday, December 28, 2018

Multithreading (Introduction)

A thread is a sequence of instructions within a program that can be executed independently of other code. It is an entity within a process that can be scheduled for execution. Also, it is the smallest unit of processing that can be performed in an OS (Operating System).  A thread contains all this information in a Thread Control Block (TCB): Thread Identifier: Unique id...
Share: