Bug introduced in 10.0 and persisting through 11.2
RunProcess
is new in 10.0
Comparing the cpu usage of
RunProcess[{"sleep", "10"}]
and
Run["sleep 10"]
The mathematica kernel spikes up to 100% cpu usage in the case of RunProcess
during the time of "external calculation", while it stays calm with Run
.
Why is that? And how do I avoid this behaviour?
Mathematica version: 11.1.1
RunProcess
connects to the process stdout , whileRun
does not. I don't see why that should take so much cpu though. $\endgroup$