Skip to content

Commit 5897c17

Browse files
committed
Added readme
1 parent 8d64a76 commit 5897c17

File tree

5 files changed

+11
-6
lines changed

5 files changed

+11
-6
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ This project is about a CPU scheduling simulator that allows users to simulate a
33
#
44
![f1](https://user-images.githubusercontent.com/53341392/235887774-a7bcaadc-44ac-4747-8b11-d3a9e84e3c8b.gif)
55

6-
* The simulator includes a GUI that allows you to manipulate and run simulations, as well as display the results.
6+
The simulator includes a GUI that allows you to manipulate and run simulations, as well as display the results.
7+
78
## Provided Scheduling Algorithms
89
This program provides those scheduling algorithms.
910
* FCFS - First Come, First Served.
@@ -14,6 +15,10 @@ This program provides those scheduling algorithms.
1415
* Round Robin
1516

1617
## Requirements
18+
### To Run
19+
* JVM 11 or later
20+
21+
### To Build
1722
* JDK 11 or later
1823
* IntelliJ IDEA Community Edition or IntelliJ IDEA Ultimate 2020.3 or later
1924
* The Compose Multiplatform IDE support plugin

gradle.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
kotlin.code.style=official
22
kotlin.version=1.8.0
33
agp.version=7.3.0
4-
compose.version=1.3.0
4+
compose.version=1.3.0
5+
org.gradle.java.home=/Users/user/Library/Java/JavaVirtualMachines/jbr-17.0.6/Contents/Home

icon.icns

12.2 KB
Binary file not shown.

proguard-rules.pro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# proguard-rules.pro
2-
-dontoptimize
3-
-dontobfuscate
2+
#-dontoptimize
3+
#-dontobfuscate
44

55
-dontwarn kotlinx.**
66

src/jvmMain/kotlin/gui/Table.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ fun showResult(processes: List<Process>, info: List<ChartInfo>) { // 성능 지
8484
val throughput: Float = processes.size / totalTime.toFloat()
8585
val contextSwitched = info.size - 2
8686
averageResultTable(throughput, averages, contextSwitched)
87-
resultTable(processes)
8887
}
8988
}
9089

@@ -98,7 +97,7 @@ private fun getAvgList(processes: List<Process>): List<Float> {
9897
avgResponseTime += ((processes[i].responseTime - avgResponseTime) / (i + 1))
9998
avgTurnaroundTime += ((processes[i].turnaroundTime() - avgTurnaroundTime) / (i + 1))
10099
}
101-
println(listOf(avgWaitedTime, avgResponseTime, avgTurnaroundTime));
100+
// println(listOf(avgWaitedTime, avgResponseTime, avgTurnaroundTime))
102101
return listOf(avgWaitedTime, avgResponseTime, avgTurnaroundTime)
103102
}
104103

0 commit comments

Comments
 (0)