Operating Systems Lab Manual / OS Shared Memory C Program

Program Name
Theory
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:
Enter a Message
Data sent to shared Memory
Output:
Data sent to shared Memory


Home     Back