Files
kotlin-fork/samples/concurrent
Alexander Podkhalyuzin bc941269f0 Fixed samples for the latest changes in Gradle plugin.
- Smaller gradle scripts.
- More structure in sample projects.
- Simplified build/run.
- Added gradle to the rest two samples.
- Almost removed all sh scripts.
- Gradle now works only inside of build directory.
- Fixed READMEs according to the new changes.
2017-06-08 17:21:04 +03:00
..

Concurrent

This example shows how to implement concurrent programming in Kotlin/Native. In this example we start multiple threads running concurrently and exchange messages with them.

To build cpp use ./buildCpp.sh. To build kotlin native use ../gradlew build or ./build.sh.

To run use ../gradlew run

Alternatively you can run artifact directly

./build/konan/bin/MessageChannel/MessageChannel.kexe

It will print all passed messages.