Skip to content

hhmz8/PJ5

Repository files navigation

Redo:
Fixed fork error for more than 18 forked processes, changes are reflected at the Git Repo

Hanzhe Huang
12/15/2021
Project 6

Logfile Info & Description:
The logfile stores the allocation matrix for the current processes for every 20 successful allocations.
The resource management is done through message queues and shared memory interactions.

Usage:
./oss

Files:
oss.c, oss.h, clock.c, clock.h, descriptor.c, descriptor.h, queue.c, queue.h, structs.h, userprocess.c, makefile, logfile(generated), README

Incomplete:
Deadlock avoidance algorithm.


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.tutorialspoint.com/inter_process_communication/inter_process_communication_message_queues.htm
https://www.geeksforgeeks.org/ipc-using-message-queues/
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.tutorialspoint.com/c_standard_library/c_function_rand.htm
https://stackoverflow.com/questions/8623131/why-is-rand-not-so-random-after-fork


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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published