Re:O(N^2) in CreateProcess
by seba_dos1 on Monday April 22, 2019 @10:58AM
(#19719404)
The article literally answers that. It's very common for unit tests and building infra, especially when ported from POSIX systems.
[ Parent
| on HN ]
Re:O(N^2) in CreateProcess
by MaulingMonkey on Monday April 22, 2019 @11:28AM
(#19719641)
And as for why you might want to spawn processes in these cases - it helps isolate memory corruption, other unrecoverable process failures, or even just issues like memory fragmentation to a specific unit test / file build - so that issues building/testing X don't show up as intermitent failures that get misattributed to building/testing Y.
As a workaround for perf issues like the article, you might choose to reuse the same process more instead, but it's a tradeoff.
Sorry, I thought problem is with thousands parallel processes execution. There problem is with some remainings from previous process runs.