LinuxLinks.com
Newbies What Next ? News Forums Calendar

Search





News Sections
Home
General News (3972/0)
Reviews (626/0)
Press Releases (464/0)
Distributions (187/0)
Software (807/0)
Hardware (522/0)
Security (192/0)
Tutorials (337/0)
Off Topic (180/0)


User Functions
Username:

Password:

Don't have an account yet? Sign up as a New User


Events
There are no upcoming events



Just what makes Linux tick   
Thursday, February 21 2008 @ 02:36 PM EST
Contributed by: sde

Last time, we spoke about the Linux process scheduler and how it runs in the shadows swapping processes in and out of a running state so everyone gets a stab at the CPU. Today we’ll go over how the kernel keeps track of time and just what it means to do something in a jiffy.

Just to recap, last time we saw that every process has a priority assigned to. The scheduler will bump this priority up and down as time goes on and depending on how responsive the process is.

If the task stops often because it is waiting for input or output (I/O) – such as user input on a keyboard, or for a disk drive to send data – it will have its priority increased over time. This is because the kernel considers the application to be behaving nicely; each time it stops while waiting for I/O it voluntarily yields control back to the scheduler allowing another process to run for a while.

Read more

  [ Views: 1241 ]  


Just what makes Linux tick | 0 comments | Create New Account
The following comments are owned by whoever posted them. This site is not responsible for what they say.
No user comments.


What's Related
  • Read more
  • More by sde
  • More from Tutorials


  • Story Options
  • Mail Story to a Friend
  • Printable Story Format


  • We have written a range of guides highlighting excellent free books for popular programming languages. Check out the following guides: C, C++, C#, Java, JavaScript, CoffeeScript, HTML, Python, Ruby, Perl, Haskell, PHP, Lisp, R, Prolog, Scala, Scheme, and SQL.

    Built with GeekLog and phpBB
    Comments to the webmaster are welcome
    Copyright 2009 LinuxLinks.com - All rights reserved