ipc

Binder preventing garbage collection

回眸只為那壹抹淺笑 提交于 2019-12-30 05:05:51
问题 I think I tracked down a memory leak and want to confirm what I think may true about how Android's Binder is implemented. In this case I have a Service and an Activity, each in their own process. I created an AIDL that allows me to pass a Callback object from the Activity to the Service through an ipc method and then have the callback called when the Service is done with the requested task. For a long time I was wondering: if I pass a new Callback object to the Service and I don't keep a

Passing data between C++ (MFC) app and C#

て烟熏妆下的殇ゞ 提交于 2019-12-30 03:23:05
问题 We have a monolithic MFC GUI app that is nearing the end of it's life in C++. We are planning to build new functionality in C# and pass data between each app. Question is: What is the best approach for passing data between C++ and C#? Notes: Both ends will have a GUI front end and will probably only need to pass simple data like Id's and possibly have a mechanism where it indicates to the other app what process/functionality to use. Eg One of the applications will be a CRM system in C# that

Electron - IPC - sending data between windows

半腔热情 提交于 2019-12-30 03:16:05
问题 In the main process, I create a window called mainWindow . On a button click, I create a new browserWindow called notesWindow . What I want to do is send data from notesWindow to mainWindow What I did is used IPC send to first send the data from notesWindow to the main process, retrieve the data on the main process, then send that data to mainWindow , but mainWindow is unable to receive the sender event. Sending data to the main process works fine, but from the main process to browserWindow

python interprocess querying/control

∥☆過路亽.° 提交于 2019-12-30 02:26:07
问题 I have this Python based service daemon which is doing a lot of multiplexed IO (select). From another script (also Python) I want to query this service daemon about status/information and/or control the processing (e.g. pause it, shut it down, change some parameters, etc). What is the best way to send control messages ("from now on you process like this!") and query processed data ("what was the result of that?") using python? I read somewhere that named pipes might work, but don't know that

Efficient Python to Python IPC [closed]

丶灬走出姿态 提交于 2019-12-29 11:34:08
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 4 months ago . What would be an inter-process communication (IPC) framework\technique with the following requirements: Transfer native Python objects between two Python processes Efficient in time and CPU (RAM efficiency irrelevant) Cross-platform Win\Linux Nice to have: works with PyPy UPDATE

Computer Architecture: How do applications communicate with an operating system? [closed]

大憨熊 提交于 2019-12-29 10:00:07
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 3 years ago . Prelude: This is admittedly a fairly broad question regarding computer architecture, but one that I hear from others and wonder about quite often myself. I also don't think that there is a direct or quick answer to this. However, I was hoping someone well-versed in systems

How to notify a specific thread in Java

孤者浪人 提交于 2019-12-29 08:55:11
问题 How I can call a particular thread in inter-thread communication? In the program below I have two threads t1 and t2 . When I call t1.notify() it raises: Exception in thread "Thread-1" java.lang.IllegalMonitorStateException at java.lang.Object.notify(Native Method) at Shared.methodTwo(NotifyThread.java:43) at Thread2.run(NotifyThread.java:77) Error class Shared { Thread1 t1 ; Thread2 t2 ; void ThreadInit( Thread1 t1 , Thread2 t2 ) { this.t1 = t1 ; this.t2 = t2 ; } synchronized void methodOne()

CreateRemoteThread, LoadLibrary, and PostThreadMessage. What's the proper IPC method?

依然范特西╮ 提交于 2019-12-29 08:15:24
问题 Alright, I'm injecting some code into another process using the CreateRemoteThread/LoadLibrary "trick". I end up with a thread id, and a process with a DLL of my choice spinning up. At least in theory, the DLL does nothing at the moment so verifying this is a little tricky. For the time being I'm willing to accept it on faith alone. Besides, this question needs to be answered before I push to hard in this direction. Basically, you can't block in DllMain. However, all I've got to communicate

Interprocess communication in .NET

别等时光非礼了梦想. 提交于 2019-12-29 06:25:06
问题 I have a core .NET application that needs to spawn an abitrary number of sub processes. These processes need to be able to access some form of state object in the core application. What is the best technique? I'll be moving a large amount of data between processes (Bitmaps), so it needs to be fast. 回答1: WCF would probably fit the bill... Here's a really good article on .NET remoting for performing distributed intensive analysis. Though remoting has been replaced with WCF, the article is

How to receive messages using a message-only window in a console application?

最后都变了- 提交于 2019-12-29 04:23:15
问题 I've created a simple Win32 console application that creates a hidden message-only window and waits for messages, the full code is below. #include <iostream> #include <Windows.h> namespace { LRESULT CALLBACK WindowProcedure(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) { if (uMsg == WM_COPYDATA) std::cout << "Got a message!" << std::endl; return DefWindowProc(hWnd, uMsg, wParam, lParam); } } int main() { WNDCLASS windowClass = {}; windowClass.lpfnWndProc = WindowProcedure; LPCWSTR