Define the 5 concerns of concurrent processes (race condition, deadlock, mutual exclusion, livelock, and starvation) and provide a quick example of each.
A) A race condition occurs when two or more processes try to access shared data concurrently, leading to unpredictable results.
B) Deadlock happens when two or more processes are waiting indefinitely for resources held by each other.
C) Mutual exclusion ensures that only one process at a time can access a shared resource to prevent data inconsistency.
D) Livelock occurs when two or more processes continuously change their states in response to each other without making progress.