EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

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

Subject: Re: Problems with priorities in epicsThreadCreate (part of the EPICS OSI software layer)
From: Goetz Pfeiffer <[email protected]>
To: EPICS tech-talk <[email protected]>
Date: Wed, 22 Feb 2012 12:28:44 +0100
Hello Klemen,

thank you for your reply.

Your solution looks quite interesting.

Did you get feedback whether these changes are to be added to the EPICS
base ?

If this is the case one could at implement at least some of the
functions for
vxWorks and RTEMS too.

Greetings

  Goetz


On 02/21/2012 11:23 AM, Klemen Zagar wrote:
Dear Goetz.

we have run into a problem with epicsThreadCreate: under vxWorks we
cannot create a new thread with the priority we need. With the
current implementation it's impossible.

ITER had a similar problem (apart from priority, also CPU affinity
needed to be set), which we solved in ~September last year with a
patch. However, since ITER is Linux-based, the patch is for the POSIX
API. I don't think it should be too difficult to extend to support
vxWorks.

Here is the post on the tech-talk mailing list:

  http://www.aps.anl.gov/epics/tech-talk/2011/msg01602.php

(The links to patch and the report in that post still work.)

At that time, we also discovered (through code review) issues with
mapping of EPICS priority levels to POSIX ones.

One advantage of that patch I see is that it doesn't break
backward-compatibility or introduce new API -- just IOC shell
functions through which you can tune the priorities from the startup
script.

Best regards,
  Klemen.



________________________________

Helmholtz-Zentrum Berlin für Materialien und Energie GmbH

Mitglied der Hermann von Helmholtz-Gemeinschaft Deutscher Forschungszentren e.V.

Aufsichtsrat: Vorsitzender Prof. Dr. Dr. h.c. mult. Joachim Treusch, stv. Vorsitzende Dr. Beatrix Vierkorn-Rudolph
Geschäftsführerin: Prof. Dr. Anke Rita Kaysser-Pyzalla

Sitz Berlin, AG Charlottenburg, 89 HRB 5583

Postadresse:
Hahn-Meitner-Platz 1
D-14109 Berlin

http://www.helmholtz-berlin.de


Navigate by Date:
Prev: Best pratices for compiling dbd files for asyn base device support Abadie Lana
Next: Re: Connection to Siemens S7 PLC Pavel Masloff
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Problems with priorities in epicsThreadCreate (part of the EPICS OSI software layer) Andrew Johnson
Next: Re: Problems with priorities in epicsThreadCreate: Thank you. Goetz Pfeiffer
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·