View Alisha  Roy 's Profile
What is IPC? What are the various schemes available?
The term IPC (Inter-Process Communication) describes various ways by which different process running on some operating system communicate between each other. Various schemes available are as follows:

1. Pipes: One-way communication scheme through which different process can communicate. The problem is that the two processes should have a common ancestor (parent-child relationship). However this problem was fixed with the introduction of named-pipes (FIFO).
2. Message Queues : Message queues can be used between related and unrelated processes running on a machine.
3. Shared Memory: This is the fastest of all IPC schemes. The memory to be shared is mapped into the address space of the processes (that are sharing). The speed achieved is attributed to the fact that there is no kernel involvement. But this scheme needs synchronization.

Various forms of synchronisation are mutexes, condition-variables, read-write locks, record-locks, and semaphores.
Asked by Alisha Roy | May 12, 2013 | Report this Report abuse |  Reply now
Replies (2)
View Nikki   's Profile
How do you execute one program from within another?
May 17, 2013 | Report this Report abuse
View Aarpit  Gupta 's Profile
The system calls used for low-level process creation are "execlp()" and "execvp()". The "execlp()" call overlays the existing program with the new one, runs that and exits. The original program gets back control only when an error occurs.
execlp(path,file_name,arguments..); //last argument must be NULL

A variant of "execlp()" called "execvp()" is used when the number of arguments is not known in advance.
execvp(path,argument_array); //argument array should be terminated by NULL
May 15, 2013 | Report this Report abuse
SiliconIndia About Us   |   Contact Us   |   Help   |   Community rules   |   Advertise with us   |   Sitemap   |   Question & Answer
News:       Technology   |   Enterprise   |   Gadgets   |   Startups   |   Finance   |   Business   |   Career   |   Magazine  |   Newsletter   |   News archive  
Cities:        CEO   |     Startup   |   Mobile   |   CIO   |   Women   |   BI   |   HR   |   SME   |   Cloud   |   Marketing   |   QA   |   Java   |   Web Developer  
Community:      Members   |   Blogs   |   Mentorship   |   Indian Entrepreneurs   |   Gyan   |   Advice   |   Community   |   Find   |   Events   |   CXO Insights  
Job Board:      Jobs   |   Freshers   |   Companies   |   HR Speak   |   Forum  
Online Courses:   Web Developer   |   Java Developer   |   CCNA Training   |   SEO   |   SAS   |   SQL Server 2005   |   J2EE
Education:   MBA   |   MCA   |   Engineering   |   Overseas Education   |   Training Institute
Life:          Real Estate   |   Travel   |   Finance   |   Gadgets   |    Products   |   Movie Reviews   |    Jokes   |   Videos 
Send your and help us continue to improve SiliconIndia
© 2013 SiliconIndia all rights reserved