Electronics
A typical example of a race condition may occur in a system of logic gates, where inputs vary. If a particular output depends on the state of the inputs, it may only be defined for steady-state signals. As the inputs change state, a small delay will occur before the output changes, due to the physical nature of the electronic system. For a brief period, the output may change to an unwanted state before settling back to the designed state. Certain systems can tolerate such glitches, but if for example this output functions as a clock signal for further systems that contain memory, the system can rapidly depart from its designed behaviour (in effect, the temporary glitch becomes permanent glitch).
For example, consider a two input AND gate fed with a logic signal A on one input and its negation, NOT A, on another input. In theory, the output (A AND NOT A) should never be true. However, if changes in the value of A take longer to propagate to the second input than the first when A changes from false to true, a brief period will ensue during which both inputs are true, and so the gate's output will also be true.
Proper design techniques (e.g. Karnaugh maps) encourage designers to recognize and eliminate race conditions before they cause problems. Often logic redundancy can be added to eliminate some kinds of races.
As well as these problems, some logic elements can enter metastable states, which create further problems for circuit designers.
Read more about this topic: Race Condition
Famous quotes containing the word electronics:
“We live in a highly industrialized society and every member of the Black nation must be as academically and technologically developed as possible. To wage a revolution, we need competent teachers, doctors, nurses, electronics experts, chemists, biologists, physicists, political scientists, and so on and so forth. Black women sitting at home reading bedtime stories to their children are just not going to make it.”
—Frances Beale, African American feminist and civil rights activist. The Black Woman, ch. 14 (1970)