1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 <2012> 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 | Index | 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 <2012> 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | posix osiSpawnDetachedProcess inherits scheduling policy + priority |
From: | Till Straumann <[email protected]> |
To: | EPICS Techtalk <[email protected]> |
Date: | Mon, 26 Nov 2012 16:56:32 -0600 |
The current implementation of posix/osiSpawnDetachedProcess() basically just forks and execs. The new process inherits the scheduling policy and priority of whoever called spawnDetachedProcess(). This means e.g., that a caRepeater spawned by a "real-time enabled" IOC application executes under SCHED_FIFO with priority 51. Not sure this is a good thing. IMO osiSpawnDetachedProcess() should be fixed so that the new process starts out with SCHED_OTHER. - Till