Files
kotlin-fork/samples/concurrent
Ilya Matveev 7ec167b5ca gradle-plugin: Allow 'manual' dependency downloading
This patch adds an ability to download native dependencies
(clang, sysroots etc) during execution of the `downloadKonanCompiler`
task. The feature can by enabled by setting the
`downloadDependencies` property of the `downloadKonanCompiler` task
to true. Targets for these dependencies may be specified as a string
list using `targets` property of the `downloadKonanCompiler` task.
2017-09-01 11:38:25 +07: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.