Login   Register  
PHP Classes
elePHPant
Icontem

operating system scheduling priority

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      PHP Classes blog  >  Accelerate Page Acces...  >  All threads  >  operating system scheduling priority  >  (Un) Subscribe thread alerts  
Subject:operating system scheduling priority
Summary:Using operating system scheduling priority
Messages:2
Author:Eike
Date:2010-10-27 05:16:26
Update:2010-10-27 07:53:23
 

  1. operating system scheduling priority   Reply   Report abuse  
Picture of Eike
Eike
2010-10-27 06:47:12
Thank you for your interesting article. I wonder about you do not mention the possibility of process priorisation on operating system level. In my opinion this should be more effective and easier to use. But I did not test it.
Can you explain the advantage of your class and why you decided not to use the operating systems scheduling priority functionality?

  2. Re: operating system scheduling priority   Reply   Report abuse  
Picture of Manuel Lemos
Manuel Lemos
2010-10-27 07:53:23 - In reply to message 1 from Eike
Eike, OS processes priorities have a different purpose.

Processes with higher priority get the CPU first but it does not prevent processes with lower priority to also get the CPU for instance when the high priority processes perform I/O operations (access files, network, etc..) and have to be put to sleep until I/O operations finish.

In practice lower priority processes still slow down the system unless thety are put to sleep for a good while. That is what my method does. If the system average CPU load is high, background processes that my code controls are put to sleep until the average load returns to acceptable levels.