Inno Setup Get progress from .NET Framework 4.5 (or higher) installer to update progress bar position

The following shows Pascal Script implementation of the code from How to: Get Progress from the .NET Framework 4.5 Installer [Files] Source: “NDP462-KB3151800-x86-x64-AllOS-ENU.exe”; Flags: dontcopy [Code] // Change to unique names const SectionName=”MyProgSetup”; EventName=”MyProgSetupEvent”; const INFINITE = 65535; WAIT_OBJECT_0 = 0; WAIT_TIMEOUT = $00000102; FILE_MAP_WRITE = $0002; E_PENDING = $8000000A; S_OK = 0; MMIO_V45 = … Read more

Inter-process communication

Have a look at my IPC at: http://www.cromis.net/blog/downloads/cromis-ipc/ It is fast, free and has a setable timeout, so you can set it to a very small amount (50ms for example). Because it is very fast (typical message cycle request -> process -> response takes less than 1ms, around 0.1ms) you can have very small timeouts. … Read more

Comparing Unix/Linux IPC

Unix IPC Here are the big seven: Pipe Useful only among processes related as parent/child. Call pipe(2) and fork(2). Unidirectional. FIFO, or named pipe Two unrelated processes can use FIFO unlike plain pipe. Call mkfifo(3). Unidirectional. Socket and Unix Domain Socket Bidirectional. Meant for network communication, but can be used locally too. Can be used … Read more

How to pass a variable from a child process (fork by Parallel::ForkManager)?

I think you’re misunderstanding what a fork does. When you successfully fork, you’re creating a subprocess, independent from the process you started with, to continue doing work. Because it’s a separate process, it has its own memory, variables, etc., even though some of these started out as copies from the parent process. So you’re setting … Read more

Socketpair() in C/Unix

You can use socketpair only where you create both processes, like so: call socketpair – now you have two socket file descriptors (two ends of a single pipe) nominate one end to be the parent and one to be the child end. It doesn’t matter which, just make a choice and stick to it later … Read more

What are the IPC mechanisms available in the Android OS?

IPC is inter-process communication. It describes the mechanisms used by different types of android components to communicate with one another. 1) Intents are messages which components can send and receive. It is a universal mechanism of passing data between processes. With help of the intents one can start services or activities, invoke broadcast receivers and … Read more

fastest (low latency) method for Inter Process Communication between Java and C/C++

Just tested latency from Java on my Corei5 2.8GHz, only single byte send/received, 2 Java processes just spawned, without assigning specific CPU cores with taskset: TCP – 25 microseconds Named pipes – 15 microseconds Now explicitly specifying core masks, like taskset 1 java Srv or taskset 2 java Cli: TCP, same cores: 30 microseconds TCP, … Read more