search for: practice_

Displaying 2 results from an estimated 2 matches for "practice_".

Did you mean: practice
2018 Aug 31
1
Detecting whether a process exists or not by its PID?
...c use in system/system2 and > mcparallel/mccollect, yet would have to be re-visited if either of the > two uses change. These features cannot be safely used outside of base R > in contributed packages. Yes, _in theory_ this is right, and of course this only works for child processes. _In practice_, you do not need signal handling. The startup time stamp method is completely fine, because it is practically impossible to have two processes with the same pid and the same (high precision) startup time. This method also works for any process (not just child processes), so for PSOCK clusters as we...
2018 Aug 31
2
Detecting whether a process exists or not by its PID?
On Fri, Aug 31, 2018 at 2:51 PM Tomas Kalibera <tomas.kalibera at gmail.com> wrote: [...] > kill(sig=0) is specified by POSIX but indeed as you say there is a race > condition due to PID-reuse. In principle, detecting that a worker > process is still alive cannot be done correctly outside base R. I am not sure why you think so. > At user-level I would probably consider some