COMP3300/7303 Assignment 1 2005
Files
You can fetch all of the below as one file:
comp3300-assign1-1.2-2005-files.tgz (modified 31 March)
README a file documenting design decisions and key features of the program (you may edit this file and hand in your own version)compile a script to compile the program on a UNIX platform (this will be used in testing during marking)- header files
constants.h a few generalconstantsfcfs.h publically known aspects of the first come first served schedulergetargs.h interface to code for processing the command line (given as an example: results not used)scheduletypes.h types for scheduling data structures and functions (designed for FCFS but some aspects potentially reusable)sjf.h types and functions for shortest job first scheduler (designed for generality so you can implement the functions in various ways)
- C program files
fcfs.c first come first served scheduler simulation implementation; use as an examplegetargs.c process command line (results not actually used but displayed on stderr to show the code executed successfully)constants.c a few constant definitions (variables defined here since their storage must be allocated at most once)main.c main programscheduletypes.c implementation of basic scheduler simulation types; you may use these as you see fit but only through features published in the header file (modified 31 March)sjf.c implementation of shortest job first scheduler (you should edit this file and hand in your own version)
- data files with a few test cases:
- results from each of the above (numbers correspond):
Note that your program will be tested with the above test data plus other cases. A test will consist of:
./scheduler < datafile > youResultsfile
diff resultsfile yourResultsfile
If your program passes the test it will produce the same output as in the test result file (diff will produce no output) and will run to completion.
last edit
