This repository is created for City University HK
course CS3103 - Operating Systems
programming assignment 1
All credit goes to: Mark Lai
Aim to create a text base linux app which manage a single background application
If the user types: bg foo
, PMan will start the program foo in the background
and print out the process id (pid) of foo. Also give the prompt to accept more commands.
PMan only allows one program running in the background.
If the background process foo is still running, PMan will not accept any further bg command.
In other words, if there is a background process is still running, when the user types bg test2
PMan should print There is a background process still running.
-
Clone the repository
-
Compile the cpp file
$ g++ main.cpp -o PMan
- Start the project
$ ./PMan