Task

Using either native language concurrency syntax or freely available libraries, write a program to display the strings "Enjoy" "Rosetta" "Code", one string per line, in random order.

Concurrency syntax must use threads, tasks, co-routines, or whatever concurrency is called in your language.




[ 'Enjoy' 'Rosetta' 'Code' ] as $words
 
thread talker
    $words pop "%s\n"
    repeat dup print
        500 choose ms
 
talker as a
talker as b
talker as c