Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
58 views1 page

Distributed IPC with C: Semaphore Use

This document discusses implementing inter-process communication between multiple processes in a distributed environment. It describes using a shared memory and semaphore to implement mutual exclusion and allow processes to access a shared block of memory. The processes will use a semaphore to exclude other processes when executing their own critical section of code in the shared memory. The implementation is done in C programming language since it has high efficiency in kernels, making it easier to work with tight constraints in a distributed system.

Uploaded by

Hari Venkatesh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
58 views1 page

Distributed IPC with C: Semaphore Use

This document discusses implementing inter-process communication between multiple processes in a distributed environment. It describes using a shared memory and semaphore to implement mutual exclusion and allow processes to access a shared block of memory. The processes will use a semaphore to exclude other processes when executing their own critical section of code in the shared memory. The implementation is done in C programming language since it has high efficiency in kernels, making it easier to work with tight constraints in a distributed system.

Uploaded by

Hari Venkatesh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Implementation of Inter Process Communication between multiple

processes in a distributed environment.


Abstract:
Inter Process Communication (IPC) refers to a mechanism, where the operating systems allow
various processes to communicate with each other. This involves synchronizing their actions and
managing shared data. In this project we are implementing a mutual exclusion mechanism to
access a shared block of memory between multiple real processes running in a pool of distributed
computers connected to a network. We have used adata structures to implement a shared memory
and, a semaphore.
Whenever a new real process is created which wants to access the shared memory or in other
words the critical section. We will use this semaphore to exclude all process from interfering the
current process when it is executing its own critical section.
We are using C Programming language to solve the problem. Since C language has the
highest level of efficency in the kernels so it is much easier to work in tighter constraints.
unistd.h
In the C and C++ programming languages, unistd.h is the name of the header file that provides
access to the POSIX operating system API.The Portable Operating System Interface (POSIX) is a family
of standards specified by the IEEE Computer Society for maintaining compatibility between operating
systems. POSIX defines the application programming interface (API), along with command line shells and
utility interfaces, for software compatibility with variants of Unix and other operating systems. It is
defined by the POSIX.1 standard, the base of the Single Unix Specification, and should therefore be
available in any conforming operating system/compiler

Hari Venkatesh(18MCA0067)
Shaswata Ganguly(18MCA0021)

You might also like