23 lines
511 B
Markdown
23 lines
511 B
Markdown
# How to run
|
|
|
|
To compile please run:
|
|
```shell
|
|
gcc -Ilib lib/process.c lib/queue.c hard_affinity.c
|
|
```
|
|
|
|
And to run please run:
|
|
```shell
|
|
./a.out < example.txt
|
|
```
|
|
|
|
# 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:
|
|
```shell
|
|
gcc process.c queue.c hard_affinity.c
|
|
```
|
|
|
|
In case you need to move the files, for easy copying:
|
|
```shell
|
|
mv lib/process.c . & mv lib/queue.c . & mv lib/queue.h . & mv lib/process.h .
|
|
``` |