2024.12.17 - [CS/Android] - Coroutine (1) Coroutine (1)ㅇ coroutine이란?- 실행을 일시 중단(suspend)/다시 실행(resume) 시킬 수 있는 기술- 비동기 프로그래밍을 위해 사용되기 때문에, 개념적으로는 일종의 경량 스레드(light-weight thread)로 볼 수 있지만, 특jyejye311.tistory.com(1)에서는 coroutine이 무엇인지, coroutine을 어떻게 실행할 수 있는지 공부했다. coroutine은 JVM thread에 비해 메모리 소요가 적어 가볍기 때문에 선호되는 사용 방식이다.import kotlinx.coroutines.*fun main() = runBlocking { repeat(50_000) { ..