Open GoogleCodeExporter opened 8 years ago
yeah, well.this probably doesnt make use of the hlt instruction.try running dos
without that and see where it gets.should be about 100%.
hlt instruction says 'if im doing nothing, don't run at full speed'.
Original comment by jasm...@lavabit.com
on 16 Feb 2009 at 3:01
edit:
use of delay() without hlt or nop in it will do that as well.
check the svn on assembla.
Original comment by jasm...@lavabit.com
on 19 Feb 2009 at 8:36
I agree with using or making a "sleep" or delay is not so great... function the
OS uses to know said thread isn't needing CPU time this moment... so other
threads can be swaped in. Often there is a parameter like how many milliseconds
the thread wishs to stay "sharing the CPU" versus running... Calling like
sleep(0) should allow other threads to get a chance but the next chance
available, our thread wants CPU again.
Just a thought.
P.S. I'm a fan of this project ... I'm a FreePascal fan for sure but a few
pascal OS projects but this one is my favorite so far! :)
--Jason P Sage
Original comment by Jegas...@gmail.com
on 10 Oct 2011 at 1:16
Original issue reported on code.google.com by
dazappa....@gmail.com
on 23 Dec 2008 at 9:29