LinuxAnswers - the LQ Linux tutorial section.
Go Back > Forums > Linux Forums > Linux - Desktop
User Name
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.


Search this Thread
Old 08-29-2012, 12:53 AM   #1
LQ Newbie
Registered: Jul 2012
Posts: 8

Rep: Reputation: Disabled
which scheduler is used in linux and why?

i want to know the sceduling mechanism in linux
Old 08-29-2012, 02:49 AM   #2
Senior Member
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 326Reputation: 326Reputation: 326Reputation: 326
Completely Fair Scheduler
Old 08-29-2012, 04:49 PM   #3
Registered: Apr 2010
Location: USA
Distribution: Debian, Ubuntu, Fedora, RedHat, DSL, Puppy, CentOS, Knoppix
Posts: 758

Rep: Reputation: 171Reputation: 171

There are several different things called Schedulers in Linux (the Kernel) and in the GNU applications, system, and utilities. At what level are you directing your question? Realize, if this is homework you are likely to get only a link to help you do the research you should have done before asking.
1 members found this post helpful.
Old 08-30-2012, 09:10 PM   #4
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Mageia, Mint
Posts: 7,560

Rep: Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433
Old 09-12-2012, 04:48 AM   #5
Registered: Aug 2011
Location: Chennai,India
Distribution: Redhat,Centos,Ubuntu,Dedian
Posts: 549
Blog Entries: 5

Rep: Reputation: Disabled

Linux works on two type of scheduler 1.CRON 2.AT
Old 09-13-2012, 04:59 AM   #6
Registered: Apr 2010
Location: USA
Distribution: Debian, Ubuntu, Fedora, RedHat, DSL, Puppy, CentOS, Knoppix
Posts: 758

Rep: Reputation: 171Reputation: 171
@arun5002: Excuse me, cron and at are only applications. You can install Linux without them, and low-level process scheduling still takes place.

'cron' or 'at' can be installed and used with linux (or AIX, or HP-UX, or Solaris, etc) but they are options. You can install any Linux distribution without them, and Linux cannot be said to run on something that it runs just fine without. The only ones you can really say "linux runs on" are the ones internal to the kernel.

Application level is only one of several places where there are schedulers of different kinds. We still do not know the intent of the OP's question. It appears by the delay in receiving feedback from the OP that he has no intention of refining his question or providing feedback about his intent.

Last edited by wpeckham; 09-13-2012 at 05:04 AM.
Old 09-23-2012, 07:54 AM   #7
Senior Member
Registered: Jun 2006
Location: Debian Land
Posts: 1,325

Rep: Reputation: 83
Originally Posted by sam_android View Post
i want to know the sceduling mechanism in linux
crontab -e
to edit the scheduling.

$ crontab -l
# Edit this file to introduce tasks to be run by cron.
# Each task to run has to be defined through a single line
# indicating with different fields when the task will be run
# and what command to run for the task
# To define the time you can provide concrete values for
# minute (m), hour (h), day of month (dom), month (mon),
# and day of week (dow) or use '*' in these fields (for 'any').# 
# Notice that tasks will be started based on the cron's system
# daemon's notion of time and timezones.
# Output of the crontab jobs (including errors) is sent through
# email to the user the crontab file belongs to (unless redirected).
# For example, you can run a backup of all your user accounts
# at 5 a.m every week with:
# 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/
# For more information see the manual pages of crontab(5) and cron(8)
# m h  dom mon dow   command

@reboot   echo "Reboot" 
0 7     *       *       *       sh
Old 09-23-2012, 02:46 PM   #8
Senior Member
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 3,894

Rep: Reputation: 774Reputation: 774Reputation: 774Reputation: 774Reputation: 774Reputation: 774Reputation: 774
I think the OP is probably asking about low-level task scheduling (but I could be very wrong).

If that's right, macemonta's answer is relevant, but not the only option (see also BFS, for example).

Of course, there is also an I/O scheduler, and there options there, too.

There are also, as has been mentioned, mechanisms for running tasks at particular times, but I don't think that is what the thread was intended to be about. We won't really find out what the OP wanted to know unless the OP makes some more contribution to this thread, and that currently looks as if it might not happen...


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
linux scheduler sunita Linux - Newbie 2 03-14-2011 10:07 AM
Scheduler available on Linux? NY-Ed Linux - Newbie 1 10-12-2010 10:13 AM
Linux Scheduler tbui57 Linux - Kernel 3 02-04-2007 12:37 PM
Linux Scheduler Scarlett_987 Linux - Kernel 1 01-23-2007 08:54 PM
linux 2.6 scheduler panandsapphire Linux - Kernel 1 08-26-2006 09:01 PM

All times are GMT -5. The time now is 02:18 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration