In Class Assignment/Quiz:
Instructions: Develop a pseudocode solution to the following problem.
Email to Tom.Halverson@dsu.edu when complete.
Problem:
- Assume we have 3 processes
- We wish to allow the processes to operate in round robin format. That
is, process A does its work, then process B, and then process C. They
continue in this manner indefinitely.
- We do NOT know
- Process names
- Process ID numbers
- Basically, you can't use if-statements to check if you can work
- You should instead assume that each process has a separate code segment
- process P()
repeat until done
work
- Use only semaphores as the synchronization method.
- Show a "declaration" of the semaphore(s)
- Show the initialization of the semaphore(s)
- Show the basic code structure for each process. Add to the outline
above to show how the synchronization fits in to this structure.
- inside the "repeat until done" loop