<testing the diff between coroutin and thread, I c...
# stackoverflow
u
testing the diff between coroutin and thread, I can't get the OOM error when using thread in kotlin I'm studying coroutine now, and testing some difference with thread. stydying with the kotlin docs, I copied some test code and changed the code for testing thread. the docs said https://kotlinlang.org/docs/coroutines-basics.html#coroutines-are-light-weight If you write the same program using threads (remove runBlocking, replace launch with thread, and replace delay with...