CIS 332          OS Concepts                 Project 1b
Fall 2000    Vahid Moghaddasi
Due Date: TBA
DESCRIPTION
Deadlock can be defined as the permanent blocking of a set of processes that either compete for system resources or communicate with each other. In a multiprogramming and multi-user environment,  resources have to be shared among processes and that may lead to a deadlock. Operating systems have different methods to prevent, detect or resolve any possible deadlock situation. If a group of processes in a system may lead to a deadlock, then that system is in an unsafe state.

You as a member of an OS designer group are asked to write a  program in a language of your choice* (see conditions)  that simulates a real system with a set of  resources and processes which are trying to finish their tasks. Your program will read all the necessary information from a flat text file called cis332.dat and populates all the elements of n x n matrices. The file "cis332.dat" has the following format:


CONDITIONS

  1. The program should be able to handle 5 x 5 matrices.
  2. The program should run in text mode and on a UNIX system only.
  3. The program should not ask the user for an input or output filename.
  4. The program should terminate, without waiting for the user to press a key.
  5. Languages, C, C++, Java and any of UNIX shell scripts including Perl could be used.
HINTS


SUBMITTAL