CS3413/Assignment4
2023-10-26 17:37:22 -03:00
..
.idea Add custom test 2023-10-26 17:35:24 -03:00
documentation Start assignment 4 2023-10-24 13:50:05 -03:00
lib Finish a4 2023-10-26 17:15:05 -03:00
submission Add a4 submission archive 2023-10-26 17:37:22 -03:00
tests Add custom test 2023-10-26 17:35:24 -03:00
CMakeLists.txt Change A4 cmake config 2023-10-26 11:25:11 -03:00
README.md Fix a4 readme 2023-10-26 17:16:10 -03:00
round_robin.c Finish a4 2023-10-26 17:15:05 -03:00

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 .