Method Name:
is_alive
Method Signature:
is_alive()
Returns:
bool
True – If the process is alive
Fale – If the process is not alive
Parameters:
Not Applicable
Method Overview:
- Returns the process status corresponding to a Process instance (whether the process is alive or not).
Example:
import multiprocessing as multiproc def processFunction(messageQueue): if __name__ == "__main__": messageQueue = multiproc.Queue() childProcess.start() |
Output:
The child process is alive:True The child process is alive:False Parent process exiting |