Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re: Set thread quantum for process under Windows

by sundialsvc4 (Abbot)
on Jan 06, 2012 at 14:06 UTC ( #946600=note: print w/replies, xml ) Need Help??

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.

  • Comment on Re: Set thread quantum for process under Windows

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.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://946600]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (3)
As of 2018-02-20 20:32 GMT
Find Nodes?
    Voting Booth?
    When it is dark outside I am happiest to see ...

    Results (274 votes). Check out past polls.