D
dbeavon
Guest
>>Would be happy to look at any examples I am not an expert, and have not programmed outside of managed environments. This is not really a memory management topic, however, so I will at least point you to something comparable in .Net. The .Net runtime has an abstraction in "system.diagnostics.process" that allows you to launch a process and wait for it. It appears to be available on .Net Core and should work on Linux (but I've never tried). That abstraction of a process in .Net has a method "waitforexit" and I have used it a lot, but never observed any CPU implication. It is possible that a CPU cost is present but it is probably minimal (ie. maybe they use a comparable algorithm). You could google "waitforexit .net cpu" and see if there are any complaints about their approach. I'm sure someone would have complained by now if this consumed CPU. Anyway all this stuff should be open source and nowadays (MIT license) so I think it is free to borrow whatever you need from it. Here are the API notes for .net core: docs.microsoft.com/.../system.diagnostics.process.waitforexit
Continue reading...
Continue reading...