Programming Assignment 5
Home   Lectures   Solutions   Handouts   Syllabus      Instructor's Site  
Assignment (Due Friday 3 November at 11:59pm.)

In your home directory (/home/osstudent), create a directory called TokenRingProject. Within this directory, work through the Token Ring handout you received in class, completing each programming exercise you find. For each exercise, please use the suggested program name.

Please read through the text as you work. It provides a clear description of the concept of a token ring and of the way in which the token ring is implemented in the code provided.

Before you begin, download the contents of the TokenRingProject on the K: drive to your TokenRingProject folder. You will find one C file, ring.c and a subdirectory containing a simulator specifically tailored to this project. The simulator allows you to view graphically the form of the data structure built as ring.c and any other code you write runs. It enables you to step through a code file or sit back and watch the whole program run. Documentation for the simulator is provided in the Simulator directory in the file ring_doc.html, which you may view with Firefox. Run the simulator by typing, runring at the command prompt while in the Simulator directory.