Methods of the Process class |
|
Creates a child process. |
|
This method contains the code that is to be executed as a separate process. This method is similar to the run() method of the Thread class. |
|
Calling start() executes the run method of the process instance. |
|
When called on a process instance it blocks for the specified number of seconds or till the process on which it is called is complete. |
|
Checks whether a process is alive or not and returns the status. |
|
Terminates the associated process. |
|
Kills the associated process. |
|
close() |
Closes the process instance |
Attributes of the Process class |
|
name |
The name of the process. It is not unique. Multiple processes can have the same name. |
daemon |
The daemon status of the process. |
pid |
Process ID of the process. |
exitcode |
Exit code of the terminated process. |
authkey |
The authentication key of the process |
sentinel |
The numeric handle of the process. In Unix: This handle can be passed into methods like select(), while waiting for an event. In Windows: This handle can be used for waitforsingleobject() and waitformultipleobjects(). |