
348 Embedded systems design
Buffer exchange
Buffer exchange is a technique that is used to simplify the
control code and allow multiple tasks to process data simultane-
ously without having to have control structures to supervise
access. In many ways it is a variation of the double buffering
technique.
This type of mechanism is common to the SPOX operating
system used for DSP processors and in these types of embedded
systems it is relatively simple to implement.
The main idea of the system is the concept of exchanging
empty buffers for full ones. Such a system will have at least two
buffers although many more may be used. Instead of normally
using a read ...