Spring 2001 -- ECES 338

Semaphores and Shared Memory in C

Main Page



Contact Information

Announcements:

Date Subject More
02-22-2001 The code (found below) was made to solve the art gallery problem. I have scanned some handwritten notes concerning the problem and solution. This only presents the solution -- it doesn't discuss it. [ note1.jpg & note2.jpg ]
02-22-2001 Assignment #5. [ Not out yet ]
02-21-2001 Shared Memory [ ps | pdf | tex ]
02-21-2001 Semaphores (2000) [ ps | pdf | tex ]
---------- ---------- [ ------ ]

Code:

File File Formats
Makefile A Makefile allows me to use compile my program quickly. To compile, I type:
make
To cleanup, I type:
make clean
Check the typescript for an example use.
[ ascii ]
gallery.c This program creates and initializes the semaphores and shared memory. Next, it fork's and execl's a number of visitors. After these have exited, it cleanups the semaphores and shared memory. [ ascii | ps | pdf | a.out ]
visitor.c This program is run as the child of gallery. It executes the algorithm solving the art gallery problem. Check my scanned notes [1,2] for an overview of the solution. [ ascii | ps | pdf | a.out ]
typescript [ ascii ]
Benjamin Karas
bjk4@po.cwru.edu
02-23-2000