Questions tagged [scheduler]

A scheduler is a software component responsible for starting tasks at a given time. Many different scheduler implementations are possible, from very low-level and short-term (an operating system CPU or I/O scheduler) to high-level and long-term (a background application launcher).

The term 'scheduler', as applied to computer programming, has quite a few different meanings:

  • Low-level scheduling of system resources, such as CPU threads or I/O requests. This type of scheduler is usually tuned to emphasize a certain performance metric, such as responsiveness or data throughput. Real-time schedulers, which provide hard response time guarantees, are a specialized class of scheduler.

  • Process scheduling, whereby the OS assigns (usually using a round-robin algorithm) time slices to applications, enabling resource sharing.

  • Application-level scheduling, often used to update user-visible information on a regular basis. This is usually done using a timer which fires an event at regular intervals.

  • Task scheduling, using a background service with an associated user interface, allowing end-users to automatically start applications at a given time, and review the execution history of each application.

Because 'scheduler' is such an overloaded term, it may be wise to also include a more specific tag which better indicates the use scenario, such as , , or

3488 questions
1
vote
1 answer

Who starts the OS process scheduler?

The scheduler manages the OS processes. But isn't the scheduler a process itself? If so, who manages it? And i assume the scheduler needs the processor itself to run, so how does all this happen? In my head its like the chicken and egg situation.
VanHerp95
  • 45
  • 1
  • 4
1
vote
1 answer

MYSQL query for find rows not overlapping other table

I have been stuck on this query for far too long. I always get close but not exact. It seems simple. Need to find rows in a table showing all available time slots that do not overlap any row from a table with appts scheduled. We need the computer…
Brad G.
  • 301
  • 3
  • 14
1
vote
2 answers

Bind multiple threads to multiple CPU?

I have multiple threads that are accessing the same data and it is too painful to make them thread safe. Therefore, they are now forced to run only on one CPU core using CPU affinity and only one thread can be running at the same time. I was…
ARH
  • 1,355
  • 3
  • 18
  • 32
1
vote
1 answer

Why does batch file using WinRAR to archive a folder taking much longer to finish than expected?

I have this script which moves all my folders and files from my c:\projects directory into a RAR archive in c:\backup. for /f "delims==" %%D in ('DIR C:\projects /A /B /S') do ( "C:\Program Files\WinRAR\WinRAR.EXE" m -r "c:\backup\projects.rar"…
Jessie
  • 45
  • 2
  • 6
1
vote
0 answers

Task Scheduler Run Whether User Logged Or Not Issue

I'm running a powershell script with task scheduler and it runs fine when the option 'run when the user is logged on' is selected. This isn't efficient for obvious reasons. Is there a specific reason as to why when I choose 'run whether user is…
Walking
  • 467
  • 1
  • 7
  • 23
1
vote
1 answer

Which "platform" should we use for a notifier-component?

We need to develop a notifier component. What it will do, is to scan a database at given intervals (say, every 15th minute), to see if any notifications needs to be sent out. We're running on Windows, and so we've been looking into either a Windows…
cwap
  • 11,087
  • 8
  • 47
  • 61
1
vote
2 answers

Scheduled and triggered jobs in Azure

For my Azure app I have a variety of scenarios for needing both scheduled and triggers jobs. Having researched both Azure WebJobs and Scheduler it appears I can accomplish this, but not in the best way possible. My use cases will go something…
Joshua Ohana
  • 5,613
  • 12
  • 56
  • 112
1
vote
2 answers

using system call in Linux kernel file

I am implementing a custom process scheduler in Linux. And I want to use a system call to record my program so that I can debug easily. The file I write is source code : linux-x.x.x/kernel/sched_new_scheduler.c In sched_new_scheduler.c could I…
Johnn
  • 105
  • 2
  • 10
1
vote
0 answers

How timer scheduler run every 15 minutes interval hourly basis

Hi, I would like to run method interval of every 15 minutes . Example: If my application initial server start time example 0:12 it won't be call timer scheduler run method. so my timer scheduler run method particular interval of every hourly 15…
sameer
  • 447
  • 3
  • 12
  • 20
1
vote
0 answers

Linux Kernel -- what happens after fork() creates the child process?

I am wondering what happen after do_fork() finishes creating the child process and calls wake_up_new_task() on it? What happens before the child process starts executing? and where is the entry point for the new process? In my question I am asking…
feeling_lonely
  • 6,665
  • 4
  • 27
  • 53
1
vote
2 answers

Where would round robin scheduling be used?

Can't seem to find any example for where Round robin CPU scheduling would be used in a real life computer example. Where would it most commonly be found?
lecardo
  • 1,208
  • 4
  • 15
  • 37
1
vote
2 answers

Are there any Schedulers for AWS/DynamoDB?

We're trying to move to AWS and to use DynamoDB. It'd be nice to keep everything under DynamoDB so there aren't extraneous types of databases, but aside from half complete research projects I'm not really finding anything to use for a scheduler.…
nilacqua
  • 167
  • 3
  • 15
1
vote
0 answers

Number of OpenMP threads limited to 4 on Ubuntu 14.04, gfortran 4.8.2

Ubuntu 14.04, gfortran 4.8.2, running on a HP Proliant DL580 G5 with four Xeon X7350's installed. 16 hardware threads available. OpenMP environment variables: OMP_NUM_THREADS=16 Compiled each .f, .f90 file with the following flags: -O2…
1
vote
1 answer

How to schedule an iOS call at an exact time in Swift?

There are some versions of this question where the OP says something like "how do I fire a method call inside my app at exactly 5pm?" Then people answer with "how do you know your app will be open at 5pm"? And that becomes a whole other question and…
Le Mot Juiced
  • 3,761
  • 1
  • 26
  • 46
1
vote
1 answer

created schedule cron job main class as runnable jar

- i have written ScheduleClass which call HelloJob class every 5 seconds. ` import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; import org.quartz.CronScheduleBuilder; import…
kks
  • 342
  • 5
  • 25
1 2 3
99
100