http://www.perlmonks.org?node_id=946600


in reply to Set thread quantum for process under Windows

It would surprise me greatly, indeed, if it proved to be the over-consumption of CPU time that is causing “everything else to become painstakingly slow” such that “web pages time out,” etc.   It is almost axiomatic to me that such disruption actually comes from the over-consumption of virtual memory (leading to thrashing), or very inefficient use of the file system, or sometimes, simply having too many processes or threads fighting for available milliseconds.   If this be so, then changing the dispatching-priority of a thread won’t help much at all, if at all.

Now, thread priorities do make a noticeable difference in some GUI systems, most notably Microsoft Windows, which still to this day is very sensitive to main-threads which do not timely respond to GUI messages.   But this manifests itself as “visual jitterbugs,” such as mouse cursors that don’t move smoothly, even as other activities which do not directly involve the GUI continue apace.

Replies are listed 'Best First'.
Re^2: Set thread quantum for process under Windows
by chessgui (Scribe) on Jan 09, 2012 at 10:42 UTC
    It is true that a chess engine tends to use a great amount of memory for its hash to store generated moves (of which there are tipically tens of millions). On the other hand once started it never 'sleeps' so consumes CPU resources as well - all the way long.

    Still: lowering the priority of the engine process has worked for me. Now I can open web pages even play online with the engine running in the background.