.. | ||
.idea | ||
documentation | ||
lib | ||
submission | ||
tests | ||
CMakeLists.txt | ||
README.md | ||
round_robin.c |
How to run
To compile please run:
gcc -Ilib lib/process.c lib/queue.c round_robin.c
And to run please run:
./a.out < example.txt
Notes
I'm not sure if the input will be exactly like the samples, or if the header table was just for us to help understand, so in case the input is not like the samples, line 15 can be commented out and the program should work as expected.
In case of error
If that command to compile does not work, please place all C and C header files in the same directory and run:
gcc process.c queue.c round_robin.c
In case you need to move the files, for easy copying:
mv lib/process.c . & mv lib/queue.c . & mv lib/queue.h . & mv lib/process.h .