Deadlock describes a situation where two or more threads are blocked forever, waiting for each other.s Concurrency means multiple computations are happening at the same time.
Find Out MoreDeadlock is a situation where a set of processes are blocked because each process is holding a resource and waiting for another resource acquired by some other process. Consider an example when two trains are coming toward each other on the same track and there is only one track, none of the trains can move once they are in front of each other. Concurrency is the execution of the multiple instruction sequences at the same time. It happens in the operating system when there are several process threads running in parallel. The running process threads always communicate with each other through shared memory or message passing. Concurrency results in sharing of resources result in problems like deadlocks and resources starvation.
View Demo!As the name suggests, it replaces the newest page that arrived at last in the main memory.
As the name suggests, this algorithm randomly replaces any page.