Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
@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.
# 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
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...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.