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: | Re: threading in asyn device support |
From: | Ralph Lange <[email protected]> |
To: | EPICS Tech-Talk <[email protected]> |
Date: | Thu, 19 Sep 2013 11:21:55 +0200 |
On 19.09.2013 10:57, Vikram Bhagat
wrote:
Hi Vikram, The epicsThread API is part of the OSI layer, which adds a common EPICS API to operating system services. (E.g., threads, timers, semaphores, ...) This ensures portability of code across all systems and architectures supported by EPICS. For things in the OSI layer, there is usually a POSIX implementation, which is used on POSIX compliant platforms. In many cases vxWorks, RTEMS, or Windows use a different implementation for the same feature. So: If you use epicsThread, your code will run on all EPICS systems. If you use pthread, your code will only run on POSIX compliant systems. Please use the OSI APIs whenever possible, to allow as many people as possible to use your code. HTH, ~Ralph |