Operating Systems Lab Manual / OS Echo using Shared Memory C Program

Program Name

Write a C Program for the use of echo shared memory in Operating System.
Theory
A pipe is a technique for passing information from one program process to another. 
Shared memory is a memory shared between two or more processes.Using pointers to shared memory
we read and write data to shared memory.

shmat():Shared memory Attach
shmdt():Shared memory Dettach
Program Code


Input:

Output:
Child Process
Parent Process
Child Process - Welcome
Parent Process - Welcome


Home     Back