A process manager called PMan (custom linux shell) that supports running and managing background processes running on the operating system.
Procedures for Running Process Manager PMan
[Note: PMan code runs on linux environments
-
To compile code: On terminal execute
make
command. -
Ensure executable files (*.o) of testing programs are present within the same directory (PMan folder).
-
Ensure these executable files (*.o) of testing programs were compiled in the linux system.
-
If no executable files (*.o) of testing programs are available, include the (*.c) files of the programs in question and add the following compiling code to the Makefile.
all: pman inf <filename> <filename>: <filename>.c gcc -o <filename> <filename>.c
-
To run PMan executable: On terminal execute
./PMan
command.
The PMan: > is comprised of 6 commands:
- bg [ In which process starts running in the background ]
- bglist [ In which all processes commenced by the system will be listed ]
- bgkill [ In which the process with process id will be terminated ]
- bgstop [ In which the process with process id will be stopped ]
- bgstart [ In which the process with process id will be restarted ]
- pstat [ In which the process with process id will have /proc information displayed ]