Skip to content

Commit 509b651

Browse files
committed
Update documentation
1 parent 7293edb commit 509b651

File tree

3 files changed

+379
-223
lines changed

3 files changed

+379
-223
lines changed

Diff for: benchmarks/scripts/generate_plots_semaphore_jvm.py

-74
This file was deleted.

Diff for: benchmarks/src/jmh/kotlin/benchmarks/SemaphoreBenchmark.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ open class SemaphoreBenchmark {
5151
val semaphore = Semaphore(_3_maxPermits)
5252
val jobs = ArrayList<Job>(coroutines)
5353
repeat(coroutines) {
54-
jobs += GlobalScope.launch {
54+
jobs += GlobalScope.launch(dispatcher) {
5555
repeat(n) {
5656
semaphore.withPermit {
5757
doGeomDistrWork(WORK_INSIDE)
@@ -69,7 +69,7 @@ open class SemaphoreBenchmark {
6969
val semaphore = Channel<Unit>(_3_maxPermits)
7070
val jobs = ArrayList<Job>(coroutines)
7171
repeat(coroutines) {
72-
jobs += GlobalScope.launch {
72+
jobs += GlobalScope.launch(dispatcher) {
7373
repeat(n) {
7474
semaphore.send(Unit) // acquire
7575
doGeomDistrWork(WORK_INSIDE)

0 commit comments

Comments
 (0)