Low-Latency IPC Between UI Thread and Child Process in C#
<p>I have program that spawns a separate child process that performs a function that can potentially run for a long period of time. While the child process is running, a windows form is displayed on the main thread (this has to be on the main thread) showing the progress of the child process. I need to set up IPC in order to communicate the current progress state of the child process on the main UI thread. I was able to get an anonymous pipeline set up, however there was significant lag. Are there any recommendations for a faster method? I have read that using Memory-Mapped Files can reduce latency even further, however I am having trouble setting this up.   </p>