interprocess

Is there a difference between boost iostream mapped file and boost interprocess mapped file?

I want to create a mapped binary file into memory; however I am not sure how to create the file to be mapped into the system. I read the documentation several times and realize there are 2 mapped file implementations, one in iostream and the other in interprocess. Do you guys have any idea on how to create a mapped file into shared mem...

Communication between EJB3 Instances (JEE inter-bean communication) possible?

I'm designing a part of a JEE6 application, consisting of EJB3 beans. Part of the requirements are multiple parallel (say a few hundred) long running (over days) database hunts. Individual hunts have different search parameters (start time, end time, query filter). Parameters may get changed over time. Currently I'm thinking of the foll...

Single windows service to provide access to cached data?

I need a solution where I have a single windows service providing access to cached data to various consumers: To an MVC web application, a .Net Assembly (COM interop) used within an classic ASP page, other windows services, a windows forms application. So the data must be accessible from various processes. The data being cached is read-o...

Multiple python scripts sending messages to a single central script

I have a number of scripts written in Python 2.6 that can be run arbitrarily. I would like to have a single central script that collects the output and displays it in a single log. Ideally it would satisfy these requirements: Every script sends its messages to the same "receiver" for display. If the receiver is not running when the fi...

take a screenshot and visually highlight the focused control

After happily using open source software for many years I've figured it's time to give back. And since documentation is usually a weak point for many projects, plus my C# skills are not exactly in high demand in my corner of FLOSS land, I've figured I'll start with tutorials, etc. After the second tutorial for a burning tool, I already ...

Thread stuck in mutex wait while searching in Boost Interprocess managed_shared_memory

Hi All, We are using boost::interprocess::managed_shared_memory. Recently while testing we found that after process crash threads searching in shared memory got stuck in manage_shared_memory APIs. My initial observation is that m_header recursive lock which is member of segment_manager was in locked state while process crashed and res...

can a python script know that another instance of the same script is running... and then talk to it?

I'd like to prevent multiple instances of the same long-running python command-line script from running at the same time, and I'd like the new instance to be able to send data to the original instance before the new instance commits suicide. How can I do this in a cross-platform way? Specifically, I'd like to enable the following behav...

Different IPC (Inter Processor Communication) techniques

Can anyone help me list down different IPC (Inter Processor Communication) techniques ...with the Pro ,Cons in brief Pls notice its not Inter Process ...its interprocessor . ...

Basics difference between distributed computing and interprocess communication?

I know the theritical definition for distributed computing and interproces communication. But in real time I was not able to come to conclusion that when we go for distributed or interprocess. Tell me some scenario where we can go for distributed computing or interprocess communication by example. ...

Mac OS X : boost interprocess semaphore timed_wait : Abnormal CPU consumption

Hi. After porting a code segment from Windows to Mac OS X, I found it to consume a whole CPU core while running; the responsible call for the CPU consumption is boost::interprocess::interprocess_semaphore::timed_wait. Here follows the code portion which reproduces this behaviour. #include <boost/interprocess/sync/interprocess_semaphore...

Can I share cuda GPU device memory between host processes?

Is it possible to have two or more linux host processes that can access the same device memory? I have two processes streaming high data rate between them and I don't want to bring the data back out of the GPU to the host in process A just to pass it to process B who will memcpy h2d back into the GPU. Combining the multiple processes in...

Interprocess communication between a 2 applications.

Hi, I would like to transfer information between 2 process and the data that I pass between these 2 processes are COM visible types. What is the best way I can use to transfer information between these to processes. I know, we could do it using Named Pipes but not sure if we could transfer types using this. Can someone suggest me to a g...

Sendind pointers to different process and using them?

Is it possible to send a pointer to an object via Mach IPC by casting it into an int and then casting it back into the object. Would that work and how can that be done? I want to send a CALayer object over to a different process. I don't think I can send raw objects via Mach IPC. ...

Should I use CORBA, MessagePack RPC or Thrift, or something else entirely?

I'm writing software for a new hardware device which I want any kind of new third-party application to be able to access if they want to. The software will be a native process (C++) that should be pollable by 3rd party games and applications that want to support the hardware device. Those 3rd party apps should also be able to receive ev...

File Locking vs. Semaphores

Just out of curiosity, what is the preferred way to achieve interprocess synchronization on Linux? The sem*(2) family of system calls seem to have a very clunky and dated interface, while there are three ways to lock files - fcntl(), flock() and lockf(). What are the internal differences (if any) and how would you justify the usage of e...

Is it possible to load a function into some allocated memory and run it from there?

I'm messing around with some interprocess communication stuff and I am curious if it's possible to copy a function into some shared memory and run it from there from either process. Something like: memcpy(shared_memory_address, &func, &func + sizeof(func)); I realize you can't take the size of the function but that was what popped in...

shared memory locking and process crash

Hi guys, I want try to understand better the problem of synchronization of shared memory. I have understood that interprocess synchronization can work differently on different operating system. The most difference is what's happening when a process that has locked the shared memory crash. Windows free locked named mutex after a process c...

Interprocess Communication using Named Pipes in C# + PHP

Interprocess Communication using Named Pipes in C# is easy, but im not exactly sure how to do this in php, or if its even possible. so i have these questions: Is named pipes possible in php? Is it possible to have a C# named pipe client, connect to a php named pipe server? how the heck would i code that? :) an answer to any of the ab...

Communication between a Cocoa and a C# application

I have an OS X server application written in Objective-C. I'd like to write a client in C# which runs on Windows systems. Which is the simplest way to do the communication between the two applications? I'm familiar with NSConnection, and I'd like to use something similar. The application is a very simple auction game. The clients pass...

boost::interprocess::string conversion to char*

Is it possible to convert a boost::interprocess::string to an std::string or to a const char*? Something like c_str()... E.g.: boost::interprocess::string is = "Hello world"; const char* ps = is.c_str(); // something similar printf("%s", ps); I could even get a copy of the string in a non-shared memory block. E.g.: boost::interp...