Questions tagged [ipc]

IPC stands for Inter-process Communication and represents a set of methods for exchanging data and messages between threads and processes.

In computing, Inter-process communication (IPC) is a set of methods for the exchange of data among multiple threads in one or more processes. Processes may be running on one or more computers connected by a network. IPC methods are divided into methods for:

  • message passing
  • synchronization
  • shared memory, and
  • remote procedure calls (RPC).

The method of IPC used may vary based on the bandwidth and latency of communication between the threads, and the type of data being communicated.

There are several reasons for providing an environment that allows process cooperation:

  • Information sharing
  • Speedup
  • Modularity
  • Convenience
  • Privilege separation

IPC may also be referred to as inter-thread communication and inter-application communication.

The combination of IPC with the address space concept is the foundation for address space independence/isolation.

4538 questions
2
votes
1 answer

When Creating a POSIX Message Queue, Why Do the Names Need to Be Preceded With a Forward Slash

Is there a particular reason that POSIX message queues require the name be preceded with a '/'? For example, if were to attempt to open a message queue with the name "thequeue". I would have to use: mq_open("/thequeue", O_RDONLY);
2
votes
1 answer

IPC Unix domain socket bash

im going crazy trying to look for examples of unix domain socket usage on bash. I'm starting to think if it is possible at all, and thenI find people using them for netowrk stuff, i wanting merely for IPC locally, can someone facilitate me some…
maco1717
  • 823
  • 10
  • 26
2
votes
3 answers

Kill a child process running a system shell command

In my parent process, I have created a child process which executes system("find / -print"). From inside the parent, when I try to kill this child process using kill(childProcPID, SIGTERM), it doesn't get terminated immediately. system command keeps…
Vinit Sharma
  • 461
  • 2
  • 8
  • 16
2
votes
4 answers

In **portable C**, how to launch a command connecting the command's stdin to the launcher's stdout?

In a C program (p1), how to launch a dynamically constructed command (and its arguments) that reads its standard input from p1's standard output? Note that: A method other than this stdout --> stdin piping is also OK provided it is PORTABLE across…
user10955
  • 161
  • 2
  • 8
2
votes
1 answer

Aidl generation fails

I have been trying to use IPCs for a multi-apk project. One of them exposes a Service with quite a few methods. Some of those methods take Parcelable objects as parameters (or returns them). The first thing I did was to create an aidl file for my…
ErGo_404
  • 1,801
  • 4
  • 18
  • 22
2
votes
2 answers

IPC using shared memory in C

I am implementing IPC using shared memory in C linux. Here is my receiving process. It's receiving correct length but not the message. However sending process is properly sending it. Please see this and let me know the error. //header files #include…
user3392539
  • 71
  • 1
  • 2
  • 11
2
votes
1 answer

Event driven InterProcess Communication (IPC)

I am working to create a C# .NET application (single threaded). I am in need to receive data from an existing MFC application running on the same computer. My .NET application is event driven from some windows form objects like buttons and such,…
Michael Bauer
  • 183
  • 4
  • 15
2
votes
1 answer

Interaction from .NET application with a Google Chrome extension

I have a question regarding browser remote controlling. My primary goal is to read out all open tab URLs from Google Chrome and also focus a tab if a matching URL is found and reload the current page. All this stuff is invoked from the native…
Scoregraphic
  • 7,110
  • 4
  • 42
  • 64
2
votes
3 answers

Java Thread inter process communication working in boolean variable condition but not in int?

I have code to communicating 2 threads in JRE6. When i run following program my expected output is come like, A: Hi B: hi A: How r u? B: im fine wat about u? A: I'm fine B: Me too class Chat { boolean flag = false; public synchronized void…
Manoj
  • 311
  • 2
  • 5
  • 14
2
votes
1 answer

How should I secure a SOA with inter-service communication between data centers?

For my pet project I've decided on a services based architecture (yeah the buzzword SOA) because I can scale each service independent of others, distribute them geographically where they will be used more than other services, etc. The trick is that…
z8000
  • 3,715
  • 3
  • 29
  • 37
2
votes
3 answers

.net IPC without using ports

I have an IIS ASP.Net web service that will kick off a .net console application. I want to provide a graceful shut down for the console app. (ie) The shut down request will originate from web service and the console app will respond & gracefully…
MD Luffy
  • 536
  • 6
  • 18
2
votes
1 answer

Remoting call never returns

I have a windows service which spawns a child process on the same machine. They communicate two way via TCP remoting. The child process has no problem pinging the parent, but ping calls from the parent's client to the child process's remote service…
Dondey
  • 267
  • 4
  • 13
2
votes
2 answers

How can one app provide data to another without swiching apps?

Scenario: I "control" two different apps, App A and App B, both which the user has installed App A is running App A needs to obtain a string that was set by App B when App B last ran. After obtaining the string, App A will still be running User…
UsAaR33
  • 3,536
  • 2
  • 34
  • 55
2
votes
2 answers

Can ZeroMQ be used by two JVM processes to communicate on same machine?

I've always used either ActiveMQ or RabbitMQ, but have started digging into ZeroMQ lately because of the attention its getting. If what I'm reading is correct, then it seems to be a message broker as well as a mechanism for interprocess…
AdjustingForInflation
  • 1,571
  • 2
  • 26
  • 50
2
votes
2 answers

How do I communicate data between iOS apps without switching apps?

Scenario: I have developed two apps, App A and App B, both which the user has installed App A is running App A needs to obtain a string stored in App B After obtaining the string, App A will still be running No "switching animations" should be…
UsAaR33
  • 3,536
  • 2
  • 34
  • 55
1 2 3
99
100