blob: 2edc1e6be4d055280b5de9d35376e97ffc8223b0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
-module(m).
-compile(export_all).
start(NProcs) ->
Modules = [],
Pids = [spawn_link(fun() ->
Cs = [M:bar() || M <- Modules],
receive stop -> Cs end
end) ||
_ <- lists:seq(1,NProcs)],
{Modules,Pids}.
|