06-19-2010
Quote:
Can you guys please name some situations where one is prefered over the other?
That's a broad, open question - it almost sounds like an essay for homework.
Either way, if you have a look at the introduction to each section in
Beej's guide to Unix IPC, that should give you a decent background in all the standard methods of IPC, and I'm sure you can "compare and contrast" (or whatever) in your own head.
Please come back if there are any specifics you'd like to know/aren't sure about.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have a parent that is passing data to child A and then child A has to process it and pass to child B. I am able to pass the data to child A but am not able to pass it to child B. Child B seems to only be receiving the last data instead of the whole data.
I saw one example in a book but it uses... (1 Reply)
Discussion started by: scmay
1 Replies
2. UNIX for Dummies Questions & Answers
I have no IPC Mechanisms program which includes data transfer on the same Linu machine. All mechanisms of IPC must be tested. If anyone have programs about it, could you send to me?? I am waiting your answers. please help me...!!!! (2 Replies)
Discussion started by: boris35
2 Replies
3. UNIX for Dummies Questions & Answers
hai,
i am doing my masters degree in computers.please any one tell me about
fork(),semaphores,mutex,messaging queues,messaging using pipes ,and msgget(),msgrecv() funtions
in ipc programming .
i have exam on that i have a book but in that they not given clearly.
hope u will
... (2 Replies)
Discussion started by: G.Vishnuvardhan
2 Replies
4. Programming
Hi guys, I'm new to Linux and Unix I have just simple code . But I don't know why it doesn't work ..
But, the outputfile is Blank.. I don't understand why.. Please help me.. Thank you very much
P.S: sorry, I don't know how to edit this post clearly.. it's hard to read.. Please try.. (2 Replies)
Discussion started by: thanh_sam_khac
2 Replies
5. Solaris
I was asked to look into a problem with a Sun Netra 440 in another department. On the server in question, the relevant 'uname -a' information is, "SunOS host1 5.9 Generic_118558-16 sun4u sparc SUNW,Netra-440". That information aside, while the other admin is logged into the ALOM, these errors are... (0 Replies)
Discussion started by: Borealis
0 Replies
6. UNIX for Dummies Questions & Answers
hey everyone,
I'm reading a tutorial on the Mach kernel principles, however, the port and port rights part are kind of confusing to me. I don't know if the book has typos or something but it seems a bit contradictory. It says that "ports, themselves, are not named. It is the port rights that are"... (10 Replies)
Discussion started by: neur0n
10 Replies
7. HP-UX
Hi Experts,
Need your help for checking te interprocess communications settings on HP-UX box.
Using ipcs command I am able to view Message queue,semapohores etc, but from that output I m not able to understand how to determine if there is any issue with ipc settings and how to resolve that? (1 Reply)
Discussion started by: sai_2507
1 Replies
8. Shell Programming and Scripting
Actually i am thinking of some usefull application that involves both IPC and pthreads.But i am not quite sure what type of application involves both these together :confused:.
Anyways i am now working on creating a simple featured file manager that can do the following:
Display file name and... (2 Replies)
Discussion started by: ronmaximus
2 Replies
9. Shell Programming and Scripting
I wonder are there any IPC mechanisms in cygwin? such as shared memory, semaphores , message queues and piping? Thanks Jack (2 Replies)
Discussion started by: lucky7456969
2 Replies
10. UNIX for Beginners Questions & Answers
Hello and thanks in advance for any help anyone can offer to help me understand this
I'm curious about a 30.000 ft view on how IPC works in Linux between parent-child processes...I understand there's multiple types of IPC's... But I'm currently trying to figure out if parent-child process IPC... (1 Reply)
Discussion started by: bodisha
1 Replies
LEARN ABOUT FREEBSD
ipcrm
IPCRM(1) BSD General Commands Manual IPCRM(1)
NAME
ipcrm -- remove the specified message queues, semaphore sets, and shared segments
SYNOPSIS
ipcrm [-W] [-v] [-q msqid] [-m shmid] [-s semid] [-Q msgkey] [-M shmkey] [-S semkey] ...
DESCRIPTION
The ipcrm utility removes the specified message queues, semaphores and shared memory segments. These System V IPC objects can be specified
by their creation ID or any associated key.
The following options are generic:
-v If specified once with -W or with -1 for an object, it will show all removed objects. If specified twice with -W or with -1 for an
objects, it will show all removed objects and all failed removals.
-W Try to wipe all specified message queues, semaphores and shared memory segments.
-y Use the kvm(3) interface instead of the sysctl(3) interface to extract the required information. If ipcrm is to operate on the run-
ning system, using kvm(3) will require read privileges to /dev/kmem.
The following options are used to specify which IPC objects will be removed. Any number and combination of these options can be used:
-q msqid
Remove the message queue associated with the ID msqid from the system.
-m shmid
Mark the shared memory segment associated with ID shmid for removal. This marked segment will be destroyed after the last detach.
-s semid
Remove the semaphore set associated with ID semid from the system.
-Q msgkey
Remove the message queue associated with key msgkey from the system.
-M shmkey
Mark the shared memory segment associated with key shmkey for removal. This marked segment will be destroyed after the last detach.
-S semkey
Remove the semaphore set associated with key semkey from the system.
The identifiers and keys associated with these System V IPC objects can be determined by using ipcs(1). If the identifier or the key is -1,
it will remove all these objects.
SEE ALSO
ipcs(1)
HISTORY
The wiping of all System V IPC objects was first implemented in FreeBSD 6.4 and 7.1.
AUTHORS
The original author was Adam Glass. The wiping of all System V IPC objects was thought up by Callum Gibson and extended and implemented by
Edwin Groothuis.
BSD
December 12, 2007 BSD