A process_id manager API tested using multithreaded programming. API includes the following methods:
- int allocate_map(void) – Creates and initializes a data structure for representing pids; returns -1 if unsuccessful, 1 if successful
- int allocate_pid(void) – Allocates and returns a pid; returns -1 if unable to allocate a pid (all pids are in use)
- void release_pid(int pid) – Releases a pid
- Navigate to PID-Manager-API directory.
- From the command line, run make or make all.
- From the command line, run ./testpid
- Results will print to console.