CS 3733 Operating Systems, Spring 2006 Assignment 5 Instructions


  1. Make sure you have printed out your source code and attached the cover sheet. Answer the question on the cover sheet. If you have not completed Part 1, there is nothing to demonstrate. Make sure you write an explanation of what you have accomplished on the cover sheet. Hand me your program and you are free to leave.
  2. If you have completed Part 1, but not Part 2, follow the instructions below, but use 5 windows and 5 remote hosts instead of 3.
  3. Log onto one of the Linux machines in the Linux lab.
  4. Create a directory called assign5test somewhere in your account.
  5. Copy all of the files in /home/srobbins/cs3733s2006/assign5 into this directory:
    cp -p /home/srobbins/cs3733s2006/assign5/* .
    Do an ls -l and you should have 6 files as follows:
          -rw-r--r--  1 cs3733 students 1259 2006-04-29 11:59 copy2files.c
          -rw-r--r--  1 cs3733 students  773 2006-04-29 11:59 copy2filestest.c
          -rw-r--r--  1 cs3733 students  343 2006-04-29 11:59 readwrite.c
          -rw-r--r--  1 cs3733 students  865 2006-04-29 11:59 restart.h
          -rw-r--r--  1 cs3733 students  207 2006-04-29 11:59 r_read.c
          -rw-r--r--  1 cs3733 students  567 2006-04-29 11:59 r_write.c
       
  6. If necessary, modify your compile_daemon so that it displays a message to standard error or standard output each time it does a compile.
  7. Copy the executables for your compile_daemon and compile_all programs into this directory.
  8. create three additional terminal windows. In each window log into a different Linux machine in the lab. The machines are called lin01, lin02, lin03, etc. Go into the assign5test directory in each window.
  9. Start the compile_daemon programs on these three windows.
  10. Create a configuration file called config containing the path of the C compiler and the names of the three machines you remotely logged into.
  11. Wait for me to come over and hand me your completed assignment.
  12. Execute ls -l in your directory. It should show only the 6 files above, your configuration file and two executables.
  13. Run compile_all as follows:
    compile_all port config copy2filestest copy2filestest copy2files readwrite r_read r_write
    This should compile all files correctly.
  14. Execute ls -l in your directory again to show that the right files were created.
  15. Execute:
         copy2filestest r_read.c r_write.c

  16. Note: If you must rerun this, start with step 5 in a clean directory. When you demonstrate the program there should be only 9 files in the directory.