[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 264: mysqli_fetch_assoc(): Couldn't fetch mysqli_result
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 326: mysqli_free_result(): Couldn't fetch mysqli_result
Pete's QBASIC Site Discuss QBasic, Freebasic, QB64 and more 2008-04-02T16:26:39-05:00 http://www.petesqbsite.com/phpBB3/app.php/feed/topic/2636 2008-04-02T16:26:39-05:00 2008-04-02T16:26:39-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=16945#p16945 <![CDATA[How to keep a program from hogging the processor?]]>

Code:

dosleep 25,1loop 
Will make your program wait for 25ms every cycle making it quite much less cpu craving.
I anticipated a SLEEP kind of answer, but once you start something, ya gotta finish it!
What you mean?

Statistics: Posted by BadMrBox — Wed Apr 02, 2008 4:26 pm


]]>
2008-04-02T13:53:17-05:00 2008-04-02T13:53:17-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=16935#p16935 <![CDATA[Euler]]>
SCREEN 0 is probably the best option to run 2 QB programs at once.

I saw the Euler project before, but I figured that it was a waste of time. Have you learned anything? If you are happy then I am too!

Have fun,

Ted

Statistics: Posted by burger2227 — Wed Apr 02, 2008 1:53 pm


]]>
2008-04-02T06:29:54-05:00 2008-04-02T06:29:54-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=16924#p16924 <![CDATA[Re: If he went to bed?]]>
Am I missing something here? The program apparently ran for a long time. Sounds better than sitting there waiting for answers!

I anticipated a SLEEP kind of answer, but once you start something, ya gotta finish it!

Ted
These problems can run for a long time. So, I want to be able to use the computer in the mean time for other things, such as other problems.

Such as: Find the product of the pythagorean triple that sums up to 1000.
Ohhhhhhhh......I'm an idiot. Never mind that, but some of the other problems do take some time. I just want answers. And my question on how to keep it quiet was answered well.

They're from the Euler project, if that means anything to you.

Statistics: Posted by Mentat — Wed Apr 02, 2008 6:29 am


]]>
2008-04-01T23:51:33-05:00 2008-04-01T23:51:33-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=16917#p16917 <![CDATA[Fixing your CPU]]>
Your program will only hog CPU cycles if it constantly requests access to something via IRQ, DMA, or the FPU (486+1) math co-processor chip.

That means.. make it do something stupid like twirl a cursor..

- / | \ - / | \ .. or do a null loop.. something long enough that the CPU will not try to optimise it and kill the whole point of slowing down.. or something creative that is just plain mundane.

Simple.

Check against clock cycles or whatever timer you can find to interrupt your processing that way.

Statistics: Posted by Kiyotewolf — Tue Apr 01, 2008 11:51 pm


]]>
2008-04-01T23:34:32-05:00 2008-04-01T23:34:32-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=16915#p16915 <![CDATA[If he went to bed?]]>
I anticipated a SLEEP kind of answer, but once you start something, ya gotta finish it!

Ted

Statistics: Posted by burger2227 — Tue Apr 01, 2008 11:34 pm


]]>
2008-04-01T15:59:52-05:00 2008-04-01T15:59:52-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=16911#p16911 <![CDATA[How to keep a program from hogging the processor?]]> Statistics: Posted by Mentat — Tue Apr 01, 2008 3:59 pm


]]>
2008-04-01T15:54:56-05:00 2008-04-01T15:54:56-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=16910#p16910 <![CDATA[How to keep a program from hogging the processor?]]> Statistics: Posted by BadMrBox — Tue Apr 01, 2008 3:54 pm


]]>
2008-03-31T20:48:44-05:00 2008-03-31T20:48:44-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=16892#p16892 <![CDATA[How to keep a program from hogging the processor?]]> Statistics: Posted by Mentat — Mon Mar 31, 2008 8:48 pm


]]>