CCThread.Arr
val spawn : int -> (int -> 'a) -> t array
Arr.spawn n f creates an array res of length n, such that res.(i) = spawn (fun () -> f i).
Arr.spawn n f
res
n
res.(i) = spawn (fun () -> f i)
val join : t array -> unit
Arr.join a joins every thread in a.
Arr.join a
a