/sysNet1_lizard

Primary LanguageC++MIT LicenseMIT

aob1 - Andrew Bare 
dxg76 - Dante Gordon
Lizards  
To compile the program run 'make'  
To clean compilation objects run 'make clean'  
To run the program  
./lizard [-d]  

The objective of this project is to create a shared mutually exclusive resource that is accessed by multiple threads. 
There are N lizard threads and M cat threads, the lizard threads must limit the occupancy of the sidewalk or else 
the M cat threads will wake up and terminate the program.  

  - Do not allow too many lizards to cross the driveway at once  
  - Do not use busy waits to control the lizards  
  - Allow the maximum possible number of lizards to cross simultaneously  

To compile the extra credit lizardUni run 'make -f extra.mk'
To run the extra credit lizardUni
./lizardUni [-d]