Skip to content

hhmz8/PJ2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hanzhe Huang
10/6/2021
Project 2

Description:
This program manages n licenses and logs messages into the logfile through licensed child processes.
The command line stdin should contain lines in the format of "testsim int int", similarly to the example file testing.data.

Usage:
./runsim [n] < stdin

Example Usage:
./runsim 2 < testing.data

Files:
runsim.c, runsim.h, testsim.c, testing.data, makefile, logfile(optional), README

References:
https://www.tutorialspoint.com/inter_process_communication/inter_process_communication_shared_memory.htm
https://stackoverflow.com/questions/19461744/how-to-make-parent-wait-for-all-child-processes-to-finish
https://www.gnu.org/software/libc/manual/html_node/Example-of-Getopt.html
http://www.cs.umsl.edu/~sanjiv/classes/cs4760/src/shm.c
https://www.geeksforgeeks.org/signals-c-set-2/
https://www.geeksforgeeks.org/bakery-algorithm-in-process-synchronization/


Git Repository:
https://github.com/hhmz8/PJ2

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published