Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 602 Bytes

File metadata and controls

14 lines (10 loc) · 602 Bytes

PID-Manager-API

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

To Run

  • 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.