I am confused about the statement from the book Threading in C# about thread priority,
the confusing statement is, "The ideal solution is to have the real-time work and user interface in separate processes". Why the solution works and ideal?
The whole paragraph is,
If the real-time application has a user interface, it can be undesirable to elevate the process priority because screen updates will be given excessive CPU time Ė slowing the entire computer, particularly if the UI is complex. (Although at the time of writing, the Internet telephony program Skype gets away with doing just this, perhaps because its UI is fairly simple). Lowering the main threadís priority Ė in conjunction with raising the processís priority Ė ensures the real-time thread doesnít get preempted by screen redraws, but doesnít prevent the computer from slowing, because the operating system will still allocate excessive CPU to the process as a whole. The ideal solution is to have the real-time work and user interface in separate processes (with different priorities), communicating via Remoting or shared memory. Shared memory requires P/Invoking
the Win32 API (web-search CreateFileMapping and MapViewOfFile).
thanks in advance,