Newsgroups: comp.sys.transputer,comp.lang.misc
From: jan@neuroinformatik.ruhr-uni-bochum.de (Jan Vorbrueggen)
Subject: Re: ALTs and PRI ALTs
Organization: Institut fuer Neuroinformatik, Ruhr-Universitaet Bochum, Germany
Date: 02 May 94 17:10:20 GMT
Message-ID: <JAN.94May2181021@thalia.neuroinformatik.ruhr-uni-bochum.de>

In article <Cp0Co5.E37@wizzy.com> andyr@wizzy.com (Andy Rabagliati) writes:

   That said, there are a few (very few) places where TRUE & SKIP can be
   useful. One example is :-

	   Continue calculating prime numbers until I press a key.

   This requires PRI ALT with TRUE & SKIP.

Another example is a 'leaky' buffer. The one I needed was an interrupt service
routine (connected to a camera's VSYNC) that, among other things like
triggering a frame grabber's ADC, notified a readout process that data was
ready. Potentially, and very much so during development of the code, the
interrupt service routine could hang if the readout process was still occupied
with the previous frame. In this case TRUE & SKIP (of course with PRI ALT!)
was very useful.

   These problems are rare in real applications.  If you have a problem
   that you think needs TRUE & SKIP, look very carefully at it. I mightily
   distrust code that contains it.

Hmm, yes, but please don't drown the baby in its bathwater :-)...

	Jan

