# Scheduler-Dispatcher **Repository Path**: ryan_666/scheduler-dispatcher ## Basic Information - **Project Name**: Scheduler-Dispatcher - **Description**: CSCI-GA.2250-001 Assignment2 - **Primary Language**: C - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-11-08 - **Last Updated**: 2023-11-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README Some tips on how to run this. #Untar the reference output # created with running ./runit.sh refout_vp sched tar -xzvf refout.tar.Z #Optional Untar the verbose reference output # created with running ./runit.sh refout_vp sched -v -p tar -xzvf refout_vp.tar.Z #write your program .. standard way of writing a program mkdir src vi sched.cpp make # run all examples ... assuming your executable is in ../src/sched # make a outputdir mkdir outputdir ./runit.sh outputdir ../src/sched # compare outputs with reference output # make sure that the frefout is the first argument # because we are putting the LOG.txt into the outputdir ./gradeit.sh refout outputdir You might get something like this. frankeh@NYU2 > ./runit.sh ./studx ../src/mysched # creates your outputs frankeh@NYU2 > ./gradeit.sh ./refout ./studx in F L S R2 R5 P2 P5:3 E2:5 E4 00 1 1 0 1 1 1 1 1 1 01 1 1 1 1 1 1 1 1 1 02 1 1 1 1 1 1 1 1 1 03 1 1 1 1 1 1 1 1 1 04 1 1 1 1 1 1 1 1 1 05 1 1 1 1 1 1 1 1 1 06 1 1 1 1 1 1 1 1 1 07 1 1 1 1 0 1 0 0 1 SUM 8 8 7 8 7 8 7 7 8 68 out of 72 correct You have to inspect what goes wrong .. you see that input0 algo "S" failed Go to studx/LOG.txt which will only show the command and SUM lines. The SUM might be correct, but there are differences. Execute the diff command listed manually and you will see all differences frankeh@NYU2 > diff ./refout/out_0_S ./studx/out_0_S 2,4c2,4 < 0000: 0 100 10 10 2 | 201 201 101 0 < 0001: 500 100 20 10 4 | 627 127 27 0 < SUM: 627 31.90 20.41 164.00 0.00 0.319 --- > 0000: 0 100 10 10 2 | 209 201 101 0 > 0001: 500 100 20 10 4 | 622 127 27 0 > SUM: 627 31.90 20.41 164.00 0.00 0.301 In that case you need to inspect the outputs and determine why you get different results. You might want to run with -v option and compare in detail one particular output and go from there. The -v references are provided in ./refout_v frankeh@NYU2 > ./runit.sh ./studx ./src/mysched -v # creates your outputs with -v option Finally: Please go back to the first class and the projects /home/frankeh/Public/ProgExamples/Format to see how to properly format C and C++ output to avoid rounding errors etc.