Types of Hazards
Data Hazards
read after write (RAW), a true dependency
write after read (WAR), an anti-dependency
write after write (WAW), an output dependency
Structural Hazards
Control Hazards (branch hazards)
Operations performed on data structure
Insertion, to add items to it
Deletion, to remove items from it
Modification, to modify items
Searching, to search for a particular item
Sorting, to sort the items in a required order
Finite Automation (FA)
Types of Finite Automation (FA)
Deterministic Finite Automation (DFA)
Non Deterministic Finite Automation (NFA)
The Components of the finite automation (FA) model
Input Tape
Read Control
Finite Control
Thread Cancellation
Thread Cancellation: Thread cancellation means terminating a thread before it has been completed.
Target Thread: The thread that is to be canceled is often referred to as the Target Thread.
Types of Thread Cancellation
Asynchronous Cancellation
Deferred Cancellation
Pulse Amplitude Modulation (PAM) is a form of analog modulation in which the amplitude of a series of regular pulses is varied based on the amplitude of a modulating signal. In PAM, the amplitude of the carrier signal's pulses changes in accordance with the instantaneous amplitude of the modulating signal.
Nyquist rate: Low Pass Frequency (LPF)
Equivalent code in while loop format:
for(a=1;a&1;t=100;a++)
print("%d\n;",a*a)
Solution:
int a=1;
while (a<=100)
{
printf("%d\n", a*a);
a++;
}