Process Synchronization – III – Using atomic instructions to solve Critical Section Problem

In the previous post, we discussed why atomic instructions like test_and_set() and compare_and_swap() were needed. We also discussed two algorithms which satisfied the mutual exclusion requirement, but did not satisfy the bounded waiting requirement. In this post, we shall discuss an algorithm using test_and_set() which satisfies all the requirements listed Read More …

Process Concept – IV

INTER-PROCESS COMMUNICATION (IPC)Continuing our discussion from the previous post, we discuss Inter-Process Communication in this post. This is followed by a discussion on Shared memory systems and message passing systems. Different ways of message passing, which include direct/indirect communication, synchronous and asynchronous communication, and automatic/explicit buffering are also discussed. Why do Read More …