EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

<20022003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  Index <20022003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022 
<== Date ==> <== Thread ==>

Subject: Re: POSIX recursive mutex
From: Marty Kraimer <[email protected]>
To: Jeff Hill <[email protected]>
Cc: "'Johnson, Andrew N.'" <[email protected]>, [email protected]
Date: Tue, 03 Dec 2002 11:14:56 -0600
I did a "quick and dirty" implementation of pthread_mutex asking for a recursive mutex. here is what epicsMutexTestHost shows on linux
Original

One lock pair completes in 0.969810 micro sec
One double recursive lock pair completes in 1.747160 micro sec
One quad recursive lock pair completes in 3.318290 micro sec


Fast

earth% epicsMutexTestHost
One lock pair completes in 0.423110 micro sec
One double recursive lock pair completes in 0.674220 micro sec
One quad recursive lock pair completes in 1.174490 micro sec


By the way. To get this to work I had to

#define _XOPEN_SOURCE 500


Marty


References:
RE: POSIX recursive mutex Jeff Hill

Navigate by Date:
Prev: Re: POSIX recursive mutex Marty Kraimer
Next: RE: POSIX recursive mutex Jeff Hill
Index: <20022003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022 
Navigate by Thread:
Prev: Re: POSIX recursive mutex Marty Kraimer
Next: epicsMutexLockWithTimeout - where is it called Jeff Hill
Index: <20022003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022 
ANJ, 02 Feb 2012 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·