mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Software

Reply
 
Thread Tools
Old 2003-09-05, 09:00   #45
Xyzzy
 
Xyzzy's Avatar
 
"Mike"
Aug 2002

2×23×179 Posts
Default

Do we need a game forum or what? :)
Xyzzy is offline   Reply With Quote
Old 2003-09-08, 12:55   #46
dsouza123
 
dsouza123's Avatar
 
Sep 2002

2×331 Posts
Default

For the pausing ( when another process is running ) what about just suspending the thread that does all the calculations instead of terminating it. This will drop its CPU use to 0.

Also lowering the priority of the other thread to 1 ( idle ) and having it sleep for 7 seconds or so between checks of active tasks.

I guess an alternative is to put a long sleep (60 seconds) in the calculation thread and have it repeat the sleep as long as needed. Some variable holding the state. if sleeping = 1 { sleep 60sec }

When the process that initiated the pause is no longer running resume the suspended thread and restore the priority of the other thread. ( I guess this part is obvious, just stating to be complete. )
dsouza123 is offline   Reply With Quote
Old 2003-09-08, 13:34   #47
smh
 
smh's Avatar
 
"Sander"
Oct 2002
52.345322,5.52471

29·41 Posts
Default

Quote:
Originally Posted by Xyzzy
Besides, for some strange reason I get only one CPU in task manager so I think HT is disabled...
I've had a problem like that after installing a servicepack on a dual P3. In task manager the performace tab only showed one cpu.

Turned out to be an option in task manager. View/CPU History/...
smh is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
BUG Prime95 Priority handling Win7 workerthread Software 9 2012-05-01 22:02
priority settings in prime95 25.9 b1? joblack Software 4 2008-12-28 22:42
Feature request: Prime95 priority higher than 10 JuanTutors Software 19 2006-10-29 04:09
Prime95 causes lag even at priority 1 ixfd64 Software 3 2006-01-23 20:57
POWER CONSUMPTION idle versus Prime95 Peter Nelson Hardware 10 2005-01-16 19:42

All times are UTC. The time now is 16:20.


Sun Aug 1 16:20:56 UTC 2021 up 9 days, 10:49, 0 users, load averages: 1.89, 2.00, 1.84

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.