Skip to content
This repository has been archived by the owner on Mar 5, 2019. It is now read-only.

Latest commit

 

History

History
27 lines (23 loc) · 982 Bytes

File metadata and controls

27 lines (23 loc) · 982 Bytes

CS3103 Process Manager Assignment

Introduction

This repository is created for City University HK course CS3103 - Operating Systems programming assignment 1
All credit goes to: Mark Lai

Assignment Requirement

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.

Getting Started

  1. Clone the repository

  2. Compile the cpp file

$ g++ main.cpp -o PMan
  1. Start the project
$ ./PMan