Given all the options to have processes or threads interact with each other (locks, mutex, semaphores, message queues, shared memory, etc), I'm a bit lost about what's best to do what I want.
I want several processes to wait for a certain event to happen. That is, I want them to block either until
a certain timeout is reached, or
a...
I've been playing with GLib's D-Bus bindings, trying to get something (anything) working, with very limited success. I've been trying to get Ross Burton's example code to compile and run, but keep hitting new and exciting difficulties.
Can you help debug this code, or failing that, point me at some example of D-Bus GLib code that does w...
I have a single-instance app (c#, WPF, .net3.51). The check if the app is already instantiated is done via a Mutex. If the app is already running, I open a new window from within the already opened app-instance. This works fine so far.
However due to an app extension, I now must send the e.Args (or at least the first string of it) to t...
I have two processes, a producer and a consumer. IPC is done with OpenFileMapping/MapViewOfFile on Win32.
The producer receives video from another source, which it then passes over to the consumer and synchronization is done through two events.
For the producer:
Receive frame
Copy to shared memory using CopyMemory
Trigger DataProduced...
I wrote a Perl program which searches and manipulates one text file. This CGI process slurps the file directly into memory, manipulates the file based on the User's input, then generates the HTML result.
It works functional wise. However, I know that once I deploy on high volume server, it will not be able to respond in due time. I sus...
I want to share a data with multiple processes. My first attempt is to use Point to point message queue with multiple readers since I read that P2P Msg Queue is very fast.
During my test, it seems like multiple readers are reading from the same queue and once a message is fetched by one reader, other readers will not be able to fetch th...
I've created a Windows/C++/WTL application that spawns a child process. The two processes communicate via anonymous pipes.
I'd like to be able to debug the child process.
Since both parent and child projects are in the same solution in Visual Studio 2008, is there any way to tell VS2008 that I'd like the debugger to debug both proce...
I'm trying to use a socketpair to have a parent process provide input to a child process that execs a different program (e.g., grep) and then read the resulting output. The program hangs in the while loop that reads the output from the program that the child execs.. The child dupes stdin and stdout on to its end of the socketpair and the...
In Windows, is there a tool to view semaphores from the command line?
SysInternals "Process Explorer" does a great job from a gui, and the SysInternals "handle.exe" view handles from the command line, but I've not found anything to enumerate semaphores from the command line?
...
I am doing a tool in PHP for my personal use. But PHP is very slow and the task I need to do is takes much time, so I'll make a daemon in c++ and keep it in the background (It will run in a VPS).
PHP would connect to the daemon througt a simple tcp socket (I'll try to design/use a simple IPC protocol) in order to submit the task. The d...
As part of a Linux benchmark application, I have a parent process that forks multiple children that will each perform a task in parallel. I'm using signals to coordinate between them since I'm looking for as accurate of timing as possible. Each child will prepare for the test, then enter a 'barrier' controlled by the parent via signals...
I am having an issue with a 32-bit legacy app running on 64-bit windows. The app in question uses CreateFileMapping to create shared memory. When this is run on 64-bit Windows any attempt to access this shared memory from another process takes about 1 second. The shared memory is created using page protection flags:
flProtect = PAGE_REA...
I have a Java application I've been working on for a year or two now. I would like to create a very simple set (with potential to add complexity later) of interfaces that I can use to control my Java app from another JVM (e.g. MATLAB).
I am assuming RMI is the best way to do this, but I'm not sure, as I know next to nothing about it.
W...
I need a way to exchange data between a process and a windows service.
The process (Windows Form Application, Console Application, in the future also a Web Solution) needs to instruct and interact with the windows service.
I want to know which way is the best to accompplish this.
I'll write the solution in C#, .NET Framework version do...
I can't seem to find a way to communicate between my IE C# BHO and a C# console app running as SYSTEM.
So far I have tried using Remoting and EventWaitHandle, but both give me "access denied" errors when I have UAC turned on the default setting in Win 7.
I have been able to have a console app that communicates with the service using bo...
In my class I run 4 process.
from multiprocessing import Process
procs = (
Process(target=ClassOne, name='ClassOne'),
Process(target=ClassTwo, name='ClassTwo'),
Process(target=ClassThree, name='ClassThree'),
Process(target=ClassFour, name='ClassFour'),
)
for p in...
As is asked in here. I could run vi or mate within emacs.
The problem is that after running (async-shell-command "vi"), I always have the *Async Shell Command" popped up as a window.
Can I prevent popping up this windows? Or, can I modify the emacs code to remove the window as soon as it pops up?
(defun runvi ()
(interactive)
(l...
is it possible to turn pipes genereated via pipe() on a POSIX-system into std::istreams and std::ostreams?
if yes, how?
i would prefer to use << and >> instead of read() and write()
thanks in advance
...
What is the difference between 2 ways of interaction between applications on android:
1. implementing service in app #1 and using it in app #2.
2. handling intentions and posting answer intention.
Interactions are supposed to be asynchronous.
What are pros and contras for each?
...
hey all , i want to do the following
open a Named pipe using java , and extract the content of that archive (rar / zip /etc..)
to a named pipe
the run mplayer with the location of that pipe and play the movie ,
i tried open the IPC in java using this project CLIPC
but , my code is freezing in the fifo.openWriter(); line
FIFO fifo ...