better folder structure for lab3

This commit is contained in:
ItsMAX0112 2024-09-22 20:40:45 +05:30
parent 50cc1bb26b
commit 30ce53fac0
18 changed files with 609 additions and 565 deletions

2
.gitignore vendored
View File

@ -1,3 +1,3 @@
*.out *.out
*.pl *.pl

BIN
lab1/images/3rotated.ppm Normal file

Binary file not shown.

View File

@ -35,3 +35,4 @@
../images/7.ppm 1.79435 ../images/7.ppm 1.79435
../images/1.ppm 0.00378666 ../images/1.ppm 0.00378666
../images/2.ppm 0.0142673 ../images/2.ppm 0.0142673
../images/3.ppm 0.0612914

View File

@ -35,3 +35,4 @@
../images/7.ppm 1.80572 ../images/7.ppm 1.80572
../images/1.ppm 0.0197896 ../images/1.ppm 0.0197896
../images/2.ppm 0.0329337 ../images/2.ppm 0.0329337
../images/3.ppm 0.199503

View File

@ -35,3 +35,4 @@
../images/7.ppm 2.54863 ../images/7.ppm 2.54863
../images/1.ppm 0.00357817 ../images/1.ppm 0.00357817
../images/2.ppm 0.0139955 ../images/2.ppm 0.0139955
../images/3.ppm 0.0578726

View File

@ -35,3 +35,4 @@
../images/7.ppm 2.50061 ../images/7.ppm 2.50061
../images/1.ppm 0.00590421 ../images/1.ppm 0.00590421
../images/2.ppm 0.0222273 ../images/2.ppm 0.0222273
../images/3.ppm 0.0992293

View File

@ -35,3 +35,4 @@
../images/7.ppm 1.0496 ../images/7.ppm 1.0496
../images/1.ppm 0.00731258 ../images/1.ppm 0.00731258
../images/2.ppm 0.02392 ../images/2.ppm 0.02392
../images/3.ppm 0.152686

3
lab3/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
/bin
*.out

View File

@ -1,8 +1,18 @@
scheduler.out: scheduler.cpp build-sched: src/scheduler.cpp
g++ scheduler.cpp -o scheduler.out mkdir -p bin
g++ src/scheduler.cpp -o bin/scheduler.out
run_sched: scheduler.out run-sched: build-sched
./scheduler.out $(WF) $(SA) bin/scheduler.out WorkloadFiles/$(WF) $(SA)
build-sched-multi: src/multi_core_scheduler.cpp
mkdir -p bin
g++ src/multi_core_scheduler.cpp -o bin/multi_core_scheduler.out
run-sched-multi: build-sched-multi
bin/multi_core_scheduler.out WorkloadFiles/$(WF) $(SA)
clean: clean:
rm *.out rm -r bin
.PHONY: build-sched build-sched-multi

View File

@ -1,32 +1,58 @@
CPU1 P1,1 0 2
P1,1 0 100 P2,0 2 3
P5,2 100 103 P3,0 3 4
P1,2 103 193 P4,0 4 5
P6,1 193 198 P5,0 5 6
P1,3 198 278 P5,1 6 8
P4,2 278 338 P6,1 8 10
P2,5 338 378 P6,1 10 10
P1,5 378 438 P5,1 10 13
P3,1 438 508 P6,1 13 15
P4,6 508 518 P5,2 15 18
P3,2 518 588 P6,1 18 19
P3,3 590 630 P4,1 19 28
P3,4 633 703 P3,1 28 30
P3,5 705 725 P4,1 30 90
P3,6 727 737 P3,1 90 92
CPU2 P4,2 92 122
P2,1 2 82 P3,1 122 125
P5,1 82 85 P4,3 125 195
P2,2 85 165 P3,1 195 197
P5,3 165 168 P4,4 197 207
P2,3 168 218 P3,1 207 209
P4,1 218 228 P4,5 209 219
P2,4 228 298 P3,1 219 277
P1,4 298 368 P2,1 277 279
P4,3 368 398 P3,1 279 349
P2,6 398 408 P2,1 349 351
P4,4 408 478 P3,2 351 391
P1,6 478 488 P2,1 391 394
P4,5 488 498 P3,3 394 464
P7,1 498 698 P2,1 464 466
P7,2 700 703 P3,4 466 486
P2,1 486 488
P3,5 488 498
P2,1 498 566
P1,1 566 568
P2,1 568 648
P1,1 648 650
P2,2 650 700
P1,1 700 703
P2,3 703 773
P1,1 773 775
P2,4 775 815
P1,1 815 817
P2,5 817 827
P1,1 827 914
P7,1 914 916
P1,1 916 1006
P7,1 1006 1008
P1,2 1008 1088
P7,1 1088 1091
P1,3 1091 1161
P7,1 1161 1163
P1,4 1163 1223
P7,1 1223 1225
P1,5 1225 1235
P7,1 1235 1424
P7,2 1426 1429

File diff suppressed because it is too large Load Diff