Question no#04:
Using an IPC means inter process communication to the
question share one person to another person is called Pipe
Pipes<stdio.h>
Int pipe(int fd[2]);
fd: file descriptor.
popen(): A person has
been started in program a new process
started data from that location
FILE* popen(char*command, char*type);
returns a pointer to a NULL.
Pclose(): The function is used by popen()
Int pclose(FILE*stream_to_close);
Shared Memory<sys/shm.h>
This memory one person created and accesses other person
Shmget(): To allows in a process shared memory.
Int shmget(key_t key,size_t size,int shmflg);
Shmget(): Share memory modifiy & permission
Int shmctt(int shmid,int cmd,struct shmid_ds*buf);
Shmat(): Memory using segments.
Void*shmat(int shmid,const void*shmaddr,int shmflg);
Shmdt(): For detach memory segments.
Shmdt(const void *shmaddr):
Print(“Bytes written: % s\n”,message);
return0;
}
process not person.
ReplyDelete