EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  <20022003  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  1999  2000  2001  <20022003  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: Sequencer priority parameter
From: Benjamin Franksen <[email protected]>
To: [email protected]
Date: Fri, 12 Apr 2002 00:13:56 +0200
Frank Lenkszus wrote:
> 
> @(#)SNC/SEQ Version 1.9.2.Beta12 : Mon Jan 10 11:45:25 2000
> 
> with EPICS 3.13.2 under vxWorks on an mvme167.
> 
> In attempt to set the task priority, I'm invoking the
> following:
> 
> seq &dpCorr, "priority=86,  U=DP"
> 
> I can't seem to make this work;i.e, the task priority
> always turns out to be 100 no matter what I set "priority="
> to.

I experienced the same with seq 1.9.5 under epics 3.13.6. Seq limits
task priorities to values greater than or equal to SPAWN_PRIORITY which
is defined in seq.h:

	#define SPAWN_PRIORITY            100

See function seq in file seq_main.c:

	if (pSP->taskPriority < SPAWN_PRIORITY)
		pSP->taskPriority = SPAWN_PRIORITY;

SPAWN_PRIORITY is also used as task priority for the auxiliary task
(also in function seq) and for task deletion, see function sprog_delete
in file seq_task.c:

	taskSpawn("tSeqCleanup", SPAWN_PRIORITY-1, VX_FP_TASK, 8000,
	 (FUNCPTR)seq_cleanup, tid, (int)pSP, (int)cleanupSem, 0,0,0,0,0,0,0);

To summarize, it looks as if SPAWN_PRIORITY could safely be set to a
value less than 100.

Can people more familiar with the seq code comment?

Ben
-- 
Berliner Elektronenspeicherring-Gesellschaft für Synchrotronstrahlung
(BESSY) GmbH, Control System Group
Albert-Einstein-Straße 15, 12489 Berlin, +49 30 6392 4862, www.bessy.de

References:
Sequencer priority parameter Frank Lenkszus

Navigate by Date:
Prev: Sequencer priority parameter Frank Lenkszus
Next: Re: Sequencer priority parameter Frank Lenkszus
Index: 1994  1995  1996  1997  1998  1999  2000  2001  <20022003  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: Sequencer priority parameter Frank Lenkszus
Next: Re: Sequencer priority parameter Frank Lenkszus
Index: 1994  1995  1996  1997  1998  1999  2000  2001  <20022003  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 ·