Beefy Boxes and Bandwidth Generously Provided by pair Networks Frank
P is for Practical
 
PerlMonks  

Re: Set thread quantum for process under Windows

by sundialsvc4 (Monsignor)
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
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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://946600]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (14)
As of 2014-04-17 18:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (453 votes), past polls