Hi Lewis,
> A problem I often see on VxWorks VME crate IOC consoles is that output
> is corrupted. It looks as if two or more threads or processes are
> writing to the console at the same time. Does your suggestion about
> where you consider it appropriate to use printf and fprintf include this
> situation? How can this be avoided?
There is only one IOC shell thread. Assuming that IOC shell commands are
executed in a synchronous way there is no risk of corrupting messages
printed by printf as long as you stick to Andrews rule and use printf
only in IOC shell commands.
Cheers,
Martin
--
Martin Konrad
Facility for Rare Isotope Beams
Michigan State University
640 South Shaw Lane
East Lansing, MI 48824-1321, USA
Tel. 517-908-7253
Email: konrad at frib.msu.edu
- Replies:
- RE: Filtering messages print on the IOC shell console Mark Rivers via Tech-talk
- References:
- Filtering messages print on the IOC shell console Paduan Donadio, Marcio via Tech-talk
- Re: Filtering messages print on the IOC shell console Johnson, Andrew N. via Tech-talk
- Navigate by Date:
- Prev:
Re: Filtering messages print on the IOC shell console J. Lewis Muir via Tech-talk
- Next:
RE: Filtering messages print on the IOC shell console Mark Rivers via Tech-talk
- 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:
Re: Filtering messages print on the IOC shell console J. Lewis Muir via Tech-talk
- Next:
RE: Filtering messages print on the IOC shell console Mark Rivers via Tech-talk
- 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
|