LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   About process scheduler (https://www.linuxquestions.org/questions/linux-newbie-8/about-process-scheduler-701148/)

chaitukanna 01-30-2009 09:34 PM

About process scheduler
 
Hi,
i am new to linux, i am curious to find out which part of the operating system is responsible for the scheduling?
How is the interface done, so as the scheduler gets the process as inputs?
Looking forward for the reply,thank you

Maligree 01-31-2009 07:08 AM

The kernel, if that's what you mean.

http://oreilly.com/catalog/linuxkern...pter/ch10.html
http://www.iamexwi.unibe.ch/studente...cheduling.html

jstephens84 01-31-2009 09:33 AM

Quote:

Originally Posted by chaitukanna (Post 3426888)
Hi,
i am new to linux, i am curious to find out which part of the operating system is responsible for the scheduling?
How is the interface done, so as the scheduler gets the process as inputs?
Looking forward for the reply,thank you

Well I am not sure exactly what you mean but here goes. You have a daemon running in the background usually crond that will read its config file and then execute the scripts based on the time conditions given. There is another command known as AT that will let you schedule a one time task. I am not sure about an interface though. It really is just a config file.

jhwilliams 01-31-2009 11:22 AM

Quote:

Originally Posted by chaitukanna (Post 3426888)
Hi,
i am new to linux, i am curious to find out which part of the operating system is responsible for the scheduling?
How is the interface done, so as the scheduler gets the process as inputs?
Looking forward for the reply,thank you

The answer to this question is probably beyond the scope of this forum. Large volumes of research and numerous publications have gone into this topic over the years. A good place to start learning about the scheduler would be in sections of one of the following two introductory books:

Modern Operating Systems, by Andrew Tanenbaum
http://www.pearsonhighered.com/educa...USS_01DBC.html. This is now in 3E, but not a lot changed. This book contains a general discussion of schedulers and scheduling algorithms.

Linux Kernel Development, by Robert Love
http://www.amazon.com/Linux-Kernel-D.../dp/0672327201
This contains sections specifically on the Linux O(1) scheduler in 2.6+ kernels. The 1E version of this book deals with 2.4 prior, as I recall, so be sure to get the 2006 version.

Both of these texts are near canon, and should be available at public libraries, on the internet -- as handouts at any undergraduate computer science department welcoming session.

Hope this helps

jstephens84 01-31-2009 12:14 PM

Wow I must have been really off on what I thought he was asking for. I think I need to quit answering questions as soon as I wake up. I thought he was refering to things like task scheduling.

chaitukanna 02-01-2009 08:58 AM

@Jameson Williams

Thank you, i will check out


All times are GMT -5. The time now is 10:57 AM.