raouf505 / fpos

Automatically exported from code.google.com/p/fpos
GNU General Public License v2.0
0 stars 0 forks source link

100% CPU usage? #1

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Run qumu with the iso that came with the download

Well using the FPOS iso makes qemu use 100% of the CPU; and having a
default linux running through qumu uses 0%... so there's probably something
wrong

What version of the product are you using? On what operating system?
Using the latest qemu on Windows XP sp3, default fpos iso.

It's a pretty interesting start so far!

Original issue reported on code.google.com by dazappa....@gmail.com on 23 Dec 2008 at 9:29

GoogleCodeExporter commented 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

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
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