Skip to content

mxu/EECS338-as4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EECS338: Operating Systems

Assignment 4: Bus Service Problem

Mike Xu (mxx17)

Features

Implements the Bus Service Problem using Linux System V semaphores and shared memory

  • Main process initializes shared memory structures and invokes other processes
  • Agent process waits for customers and assigns tickets based on remaining seats
  • Bus process increments depature times, boards waiting customers, then departs
  • Customer process waits in line for a ticket, then boards the bus

How to build and run

$> make clean
$> make
$> ./main [number of busses]

Running ./main with no arguments defaults to 3 busses

About

Bus service problem using Linux System V semaphore and shared memory

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages