What is deadlock? What is startvation? How do they differ from each other?
Answer:
-Deadlock is the phenomenon that arises when a number of concurrent processes all become blocked waiting for another thread to make available a resource, but it can only be released by a thread that is still blocked. Starvation is the phenomenon which arises when a process does not ever receive the resource it is waiting for, even if it repeatedly becomes available, as it is always allocated to another waiting process. Processes halt in deadlock because they cannot proceed and the resources are never made available.
-Therefore, no progress can be made. With starvation, progress is made overall at the expense of a particular process or processes, which consistently miss out on being allocated their requested resource