Ipc Using Shared Memory.pdf

  • Uploaded by: Kailash
  • 0
  • 0
  • May 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Ipc Using Shared Memory.pdf as PDF for free.

More details

  • Words: 62
  • Pages: 2
#include <stdio.h> #include <stdlib.h> #include <sys/ipc.h> #include <sys/shm.h> #include #include <sys/wait.h> void main() { int child,id,n,i; char*shmptr; int td; printf("\n enter the no of items "); scanf("%d",&n); child=fork(); if(!child){ id=shmget(2000,32,0666|IPC_CREAT); shmptr=shmat(id,0,0); printf("\n child is adding to item to buffer"); for(i=0;i
shmptr=shmat(id,0,0); printf("\n parent is now consuming :\n"); for(i=0;i

Related Documents

Ipc
October 2019 17
Ipc
November 2019 19
Ipc
May 2020 6
Shared
May 2020 13
Ipc Ipc .docx
May 2020 10

More Documents from "utkarsh yadav"