Experimental Physics and Industrial Control System
|
On 19.09.2013 10:57, Vikram Bhagat
wrote:
Hello,
I am not clear under standing the difference between
epicsThreads and pthread. In developing asyn based device
support, What i should be used?
For example i make some calculation in separate thread,
which was talking long time and i want to do other work in
parallel. Should i use pthread or epicsThread?
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
|
- Replies:
- Re: threading in asyn device support Vikram Bhagat
- References:
- threading in asyn device support Vikram Bhagat
- Navigate by Date:
- Prev:
threading in asyn device support Vikram Bhagat
- Next:
Re: Makefile definition for .hpp include files Andrew Johnson
- 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
- Navigate by Thread:
- Prev:
threading in asyn device support Vikram Bhagat
- Next:
Re: threading in asyn device support Vikram Bhagat
- 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
|
ANJ, 20 Apr 2015 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
·
Search
·
EPICS V4
·
IRMIS
·
Talk
·
Bugs
·
Documents
·
Links
·
Licensing
·
|