1
0

ran Pr algorithm to generate results

This commit is contained in:
Louis Heredero 2024-10-15 10:55:24 +02:00
parent 1d97ee7150
commit aee7447c21
Signed by: HEL
GPG Key ID: 8D83DE470F8544E7
3 changed files with 13 additions and 2 deletions

10
executionPr.csv Normal file
View File

@ -0,0 +1,10 @@
1,10,0,0
2,40,0,0
3,50,30,0
4,211,201,0
5,30,0,0
6,40,20,0
7,191,141,1
8,30,0,0
9,101,91,0
10,61,1,0
1 1 10 0 0
2 2 40 0 0
3 3 50 30 0
4 4 211 201 0
5 5 30 0 0
6 6 40 20 0
7 7 191 141 1
8 8 30 0 0
9 9 101 91 0
10 10 61 1 0

1
performancePr.csv Normal file
View File

@ -0,0 +1 @@
291,1,1
1 291 1 1

View File

@ -364,8 +364,8 @@ struct perf_info schedule_RR(struct pinfo *processes) { // Déclaration de la fo
}
void write_file(struct pinfo * process, struct perf_info * perf) {
FILE *myStream_execution = fopen("executionRR.csv", "w");
FILE *myStream_performance = fopen("performanceRR.csv", "w");
FILE *myStream_execution = fopen("executionPr.csv", "w");
FILE *myStream_performance = fopen("performancePr.csv", "w");
if (myStream_execution == NULL || myStream_performance == NULL) {
perror("Erreur à l'ouverture des fichiers");