dhr039
09/30/2023, 9:34 AMfun main() {
repeat(1_000_000) {
thread {
Thread.sleep(5000)
print(".")
}
}
}
is not giving an OutOfMemoryError anymore? It was giving it two months ago. Now it is just working a lot more slowly than the coroutines version. I'm using Android Studio Giraffe | 2022.3.1 Patch 1
+ kotlin-stdlib 1.6.21
The original source code: 7_starting_lots_of_threads.ktazabost
09/30/2023, 9:51 AMYonatan Karp-Rudin
09/30/2023, 7:57 PMdhr039
10/01/2023, 8:57 AM