EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  <19992000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  <19992000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: database race condition?
From: Till Straumann <[email protected]>
To: Marty Kraimer <[email protected]>
Cc: [email protected]
Date: Thu, 18 Mar 1999 17:03:47 +0100
Marty Kraimer wrote:

> Till Straumann wrote:
> >
> > One of our programmers consulted me because his device support module
> > deadlocked the database (i.e. one or two of the scanning tasks). This happened
> >
> > when his module read a field using dbGetField().
>
> Record/Device support is not allowed to call dbGetField or dbPutField.
> record/device support uses dbGetLink, dbPutLink instead.

I know. The deadlock I mentioned was not the problem, the problem is that
using dbGetLink() it seems to be possible to provoke a race condition.

>
> Reading Chapter 2 of the Application Developers guide should explain what
> happened.

Ok, AFAIK the only way to prevent the described race condition would be
making the input link e.g. MS hence making both records members of the
same lock set. What, if I want to do dbGetLink from a NPP NMS link?

Till Straumann


References:
database race condition? Till Straumann
Re: database race condition? Marty Kraimer

Navigate by Date:
Prev: Re: database race condition? Marty Kraimer
Next: MEDM 2.3.5a Released Ken Evans
Index: 1994  1995  1996  1997  1998  <19992000  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: Re: database race condition? Marty Kraimer
Next: Re: database race condition? Marty Kraimer
Index: 1994  1995  1996  1997  1998  <19992000  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, 10 Aug 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·