LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 08-29-2012, 12:53 AM   #1
sam_android
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
macemoneta
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: 344Reputation: 344Reputation: 344Reputation: 344
Completely Fair Scheduler
 
Old 08-29-2012, 04:49 PM   #3
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,627

Rep: Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695
Scheduling

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
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,324
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
cron.
 
Old 09-12-2012, 04:48 AM   #5
jsaravana87
Member
 
Registered: Aug 2011
Location: Chennai,India
Distribution: Redhat,Centos,Ubuntu,Dedian
Posts: 558
Blog Entries: 5

Rep: Reputation: Disabled
Hi


Linux works on two type of scheduler 1.CRON 2.AT
 
Old 09-13-2012, 04:59 AM   #6
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,627

Rep: Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695
@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
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,657

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

$ crontab -l
Code:
# 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 myscript.sh
 
Old 09-23-2012, 02:46 PM   #8
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,070

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
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...
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

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

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