Questions tagged [ipc]
IPC stands for Inter-process Communication and represents a set of methods for exchanging data and messages between threads and processes.
4,616
questions
0
votes
0
answers
31
views
Use C socketpair [closed]
I try to write test for a function which reads from socket, preferably using one process. To simulate a sender, I plan to use socketpair, but the following code does not work.
#include <stdio.h>
...
0
votes
0
answers
13
views
Explain the behavior of parent and child processes
So, recently I have been learning about processes, operating systems, etc. I have come across a problem that I simply can't wrap my head around. Here is the code to the said problem
#include <stdio....
1
vote
1
answer
37
views
What causes inter-process communication to take millions of cycles?
In the best case, Inter-process communication is obviously slower than communication between threads, as threads share resources, such as the heap.
However, why is inter-process communication several ...
0
votes
0
answers
31
views
Can the FlutterBinaryMessenger be used for IPC between Flutter and a non-UI MacOS/iOS app extension
I'm developing a Flutter application and a non-UI (MacOS/iOS) File Provider Extension. The extension runs in a separate process and I need the Flutter code to communicate with the extension.
Ideally I ...
0
votes
0
answers
33
views
Issue in AIDL Implementation at Client Side in Android Framework
Server App:
Let's say I have serviceImpl class A & an AIDL interface B. Class A extended B.Stub & overridden all xyz methods that presents in B.
Created new Instance of class A & passed ...
-2
votes
0
answers
62
views
C++: Why does `assert(pipe(stdin_fd) == 0)` set file descriptors to zero? [duplicate]
I am writing C++ code for inter-process-communication, where I create pipes to exchange data between parent and child (created using fork()) processes.
I declare file descriptors for setting up pipes ...
0
votes
0
answers
47
views
How to send large data to the renderer process with low latency in electron?
I'm working on a video-related project where I've disabled nodeIntegration and enabled contextIsolation for security reasons. My task involves processing business logic in the utility process and then ...
0
votes
0
answers
38
views
Registering POSIX-CPU shared memory to CUDA with cudaHostRegister
Hardware: I am using a Jetson AGX Orin.
I am trying to set an IPC between multiples processes to stream a video. I use a classic shm_open/mmap shm mechanism, then I try to map it on CUDA with pinned/...
0
votes
1
answer
58
views
TMS320F28379D Inter processor communication issue
I am working on TMS320F28379D in which I am trying to achieve inter processor communication. And its also working when I try to read data which is send by CPU1. CPU2 Reads same data from 2 location. ...
0
votes
0
answers
21
views
Is there a way to get processId of client in server side for GRPC dotnet
We implemented an Ipc mechanism using GRPC and its listenNamedPipe in dotnet. Is there any way to get the Process ID of clients in the server side? The objective is to authenticate the client process ...
0
votes
0
answers
96
views
CEFSharp Changing User Agent through a custom handler
Still really new to working with the cefsharp project.
I am trying to tie the User Agent to an instance instead of globally.
Currently I am using the following in my Program.cs
var settings = new ...
0
votes
1
answer
45
views
.NET NamedPipes client/server troubles. Server can't reply back to client - "Cannot access closed pipe"
I'm trying to create a basic client/server message exchange between two .NET applications. I want the client to connect to the server and then send a message. The server will then receive this message,...
0
votes
0
answers
47
views
Accessing Java objects across container boundaries
Is it possible to invoke Java instance methods living in a host from a local Docker container through shared memory? If so, how?
Thus, from code running in a JVM J1, I’d like to run a Docker container ...
5
votes
0
answers
108
views
Why does std::atomic.wait() hang when used in shared memory?
I have this simple program:
// shared_memory.hpp
#include <atomic>
#include <cstdint>
struct SharedMemory {
char message[100];
std::atomic<std::uint32_t> last_update_nanotime;
};...
0
votes
1
answer
36
views
How can I return data from preloaded Electron script?
I have built a function in preload.js that gets a JSON file sent from main.js. renderer.js loads it fine, but I can't seem to give the data to another variable outside of the arrow function.
main.js
...