Process and Multithreading In Operating System

What Is Process Synchronization In Operating System?

Process Synchronization means sharing system resources by processes in a such a way that, Concurrent access to shared data is handled thereby minimizing the chance of inconsistent data. Maintaining data consistency demands mechanisms to ensure synchronized execution of cooperating processes. Process Synchronization was introduced to handle problems that arose while multiple process executions. Some of …

What Is Process Synchronization In Operating System? Read More »

Classical Problem of Synchronization

Classical Problem of Synchronization Problem of Synchronization Following are some of the classical problem faced while process synchronization in systems where cooperating processes are present. Bounded Buffer Problem This problem is generalised in terms of the Producer-Consumer problem. Solution to this problem is, creating two counting semaphores “full” and “empty” to keep track of the current number …

Classical Problem of Synchronization Read More »

What is a Deadlock?

What is a Deadlock? Deadlock is a set of blocked processes, Deadlock holding a resource and waiting to acquire a resource held by another process. How to avoid Deadlocks Deadlock can be avoided by avoiding at least one of the four conditions, because all this four conditions are required simultaneously to cause deadlock. Mutual Exclusion Resources shared such …

What is a Deadlock? Read More »