Just for fun I went ahead and modified ur code.  I put 100,000 as the number
of iterations and got the interleaved output.  I also watched the process in
TaskInfo and saw three perl threads taking up about 20% cpu each.  So it
looks like 10 turns just isn't enough time to give parallelism a chance.
The first fork was done executing by the time the parent thread got around
to executing the second fork.


(199115) (1142059743.718059): fibonacci(99715) => 1.#INF
(199116) (1142059743.717683): factorial(99399) => 1.#INF
(199117) (1142059743.718099): fibonacci(99716) => 1.#INF
(199118) (1142059743.717723): factorial(99400) => 1.#INF
(199119) (1142059743.718468): fibonacci(99717) => 1.#INF
(199120) (1142059743.718105): factorial(99401) => 1.#INF
(199121) (1142059743.718523): fibonacci(99718) => 1.#INF
(199122) (1142059743.718148): factorial(99402) => 1.#INF






--
REMEMBER THE WORLD TRADE CENTER         ---=< WTC 911 >=--
"...ne cede malis"

00000100

_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to