Skip to content

gowriganeshns/Linux-IPC-Semaphores

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Linux-IPC-Semaphores

Ex05-Linux IPC-Semaphores

AIM:

To Write a C program that implements a producer-consumer system with two processes using Semaphores.

DESIGN STEPS:

Step 1:

Navigate to any Linux environment installed on the system or installed inside a virtual environment like virtual box/vmware or online linux JSLinux (https://bellard.org/jslinux/vm.html?url=alpine-x86.cfg&mem=192) or docker.

Step 2:

Write the C Program using Linux Process API - Sempahores

Step 3:

Execute the C Program for the desired output.

PROGRAM:

Write a C program that implements a producer-consumer system with two processes using Semaphores.

OUTPUT

$ ./sem.o

$ ipcs

RESULT:

The program is executed successfully.

About

Ex05-Linux IPC-Semaphores

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages