Skip to content

Instantly share code, notes, and snippets.

@zakki
Created May 22, 2015 16:26
Show Gist options
  • Save zakki/c4ad09367bd38077f4f6 to your computer and use it in GitHub Desktop.
Save zakki/c4ad09367bd38077f4f6 to your computer and use it in GitHub Desktop.
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