Skip to content

tfordjr/message-queues

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CS4760-001SS - Terry Ford Jr. - Project 3 Message Queues - 02/29/2024
https://github.com/tfordjr/message-queues.git

Compile and run instructions:
simply run make command and oss command in the following format:
./oss -n 40 -s 8 -t 3 -i 250 -f my_logfile.txt
-n processes, -s simultaneous processes, -t max runtime, -i launch interval(ms), -f logfile
use the -h arg to learn more about how to use these commands.
Args default to appropriate figures if not provided, can be in any order.

Features: 
oss.cpp: processes args and managles child forking, msgq, pcb, logical clock, etc.
user.cpp: user executable takes one arg for number of iterations. prints and sleeps. 
pcb.h: contains pcb struct and many related functions for process table utility.
clock.h: logical clock struct.
msgq.h houses msgbuffer struct, running states
makefile: creates oss and user executables, oss executes user executable to perform work.
readme: explains project

Concerns/Points of confusion: 

Known Problems or Bugs: 

About

P3 - adding message queues to our oss in cpp on linux!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published