Created
May 22, 2015 16:26
-
-
Save zakki/c4ad09367bd38077f4f6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
open Domain | |
let rec f i n = | |
if n mod 1000 = 0 then | |
Printf.printf "%d %d\n" i n; | |
f i (n + 1) | |
let () = | |
for i = 0 to 3 do | |
Printf.printf "%d\n" i; | |
spawn (fun () -> f i 0) | |
done; | |
Unix.sleep 60 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment