1996-04-02 00:41:32 -08:00
|
|
|
let print_message delay c =
|
|
|
|
while true do
|
1996-04-18 09:32:38 -07:00
|
|
|
print_char c; flush stdout; Thread.delay delay
|
1996-04-02 00:41:32 -08:00
|
|
|
done
|
|
|
|
|
|
|
|
let _ =
|
1996-04-29 07:06:05 -07:00
|
|
|
Thread.create (print_message 0.6666666666) 'a';
|
1996-04-18 09:32:38 -07:00
|
|
|
print_message 1.0 'b'
|