Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://946600]
help
Chatterbox?
[Lady_Aleena]: Your Mother, how would that work? I'm having a hard time understanding the pod.
[Your Mother]: $dir->chidren, grep {} $file->slurp &c &c. :P
[Your Mother]: Stick with what you know. Or post a SOPW and if it's not complicated I guarantee someone will answer; me if it's straightforward and no one else gets it better first.
[1nickt]: ++YourMother (Grammar Vigilante of Bristol)
[Lady_Aleena]: Um, how does grep do multiline? print "$file:$_" if grep { /get_(array|hash| data)\(.+\)/ } $_; only returns the same 18 lines the command line grep does.
[Lady_Aleena]: my scratchpad has what I have so far.
[choroba]: what do you mean by multiline?
[Discipulus]: thanks 1nickt!
[choroba]: grep is a filter, it selects elements from a list based on a boolean condition

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (11)
As of 2017-05-23 19:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?