https://kotlinlang.org logo
#getting-started
Title
# getting-started
u

Umar Ata

01/06/2021, 7:33 PM
Is it true kotlin executes on multi-core like Go?
c

Casey Brooks

01/06/2021, 7:40 PM
Kotlin runs on several different target environments, some of which support multithreaded programming (JVM supports full multithreading, Native supports limited multithreading through Workers). JavaScript is single-threaded by nature and does not support multithreaded programming. However, coroutines support asynchronous programming on all targets, which may or may not be multithreaded. Kotlin has Coroutine Channels which should be similar to Go Channels, but there are also a number of higher-level abstraction layers above channels that are easier to use and less error-prone (async-await or Flow, for example)
👍 3
3 Views