Questions tagged [scheduling]

In computer science, scheduling is the method by which threads, processes or data flows are given access to system resource.

Source: "Scheduling (computing)" article on Wikipedia

Types of scheduling

  • Round-robin

    Processes are given a set amount of time. For more information see

  • First come first serve

    Processes are executed in the order of the queue.

  • Shortest job first

    Processes are executed in order of estimated time.

  • Shortest remaining time

    Similar to shortest job first; however, if a new, shorter process joins the queue, then the scheduler will switch to that one.

  • Multi-level feedback queue

    There is more than just one queue, each queue has a certain priority and the scheduler can move jobs between queues when necessary. Modern operating systems like Windows use this.

2772 questions
1
vote
3 answers

Scheduled events on server

I'm currently creating a web app using ASP.net that tracks a number of tasks that all have a due date stored in a SQL database. My goal is to have the server notify the user when the due date has passed, whether it's via email, on the browser…
user1305850
  • 141
  • 1
  • 2
  • 13
1
vote
2 answers

Java scheduling each day

So i have tools that first the apps check in database, and then send an email. It is done. what problem for me is the scheduling. i already read some timer task. i need the tools to run every day at 00:00aam. For better or worst, here is my code…
Nicolas
  • 246
  • 1
  • 6
  • 23
1
vote
3 answers

How scheduler gets called when a high priority task comes

I have read here about situations where a scheduler is called. But what happens when a high priority task comes?
user567879
  • 5,139
  • 20
  • 71
  • 105
1
vote
2 answers

How linux scheduler decides a process as realtime, interactive, batch

When we are writing a program we are not specifying the nature of the process like whether it is realtime, interactive... I read that Linux kernel does scheduling based on the nature of the process. Couldn't find an article explaining how Linux…
user567879
  • 5,139
  • 20
  • 71
  • 105
1
vote
1 answer

How to know when a schedule() call is returning because of a signal?

In a device driver for some PCI hardware, I have an ioctl call that waits for an incoming interrupt on the PCI bus. Using wait_queue_head_t, I put the task to sleep by calling schedule(). Then, the irq_handler function wakes up this task when the…
Didier Trosset
  • 36,376
  • 13
  • 83
  • 122
1
vote
4 answers

How to use Quartz with EJB3?

I want to be able to : define different jobs and triggers. modify the expirations dates and intervals on demand pause or cancel an execution (trigger) the jobs would be ejbs or call ejbs and i would want to manage everything from the website (the…
Maxime ARNSTAMM
  • 5,274
  • 10
  • 53
  • 76
1
vote
4 answers

How to prioritise a busy queue so low priority items get processed too?

We have implement a basic queue of jobs using a mysql table where some items in it have a lower priority than the rest. Since the queue is continuously filled with high priority items then low priority items sometimes never get processed. In our…
Roman
  • 10,309
  • 17
  • 66
  • 101
1
vote
1 answer

How does process blocking apply to a multi-threaded process?

I've learned that a process has running, ready, blocked, and suspended states. Threads also have these states except for suspended because it lives in the process's address space. A process blocks most of the time when it is doing a blocking i/o or…
ccnaflic
  • 69
  • 3
1
vote
1 answer

Scheduling latency of Android sensors handlers

rather than an answer I'm looking for an idea here. I'd like to measure the scheduling latency of sensor sampling in Android. In particular I want to measure the time from the sensor interrupt request to when the bottom half, which is in charge of…
hanswe
  • 113
  • 3
  • 7
1
vote
6 answers

Most suitable .net Timer for a scheduler

We've identified a hotspot in our code using CCR timers. It appears that if we enqueue many thousands of timers that the code suffers terminal slowdown. The fix is to choose the soonest scheduled item and enqueue a timer for this event. When it…
spender
  • 117,338
  • 33
  • 229
  • 351
1
vote
1 answer

Autosys dependency on mainframe job

We have an Autosys job (let's call it job_a) that has a 3am time dependency and is also supposed to await successful completion of a mainframe job (job_m, which in our case is always successful). Job_m is run via the OPC scheduler on the mainframe,…
lins314159
  • 2,510
  • 1
  • 16
  • 19
1
vote
2 answers

Is it possible to determine what scheduling algorithm is being used to schedule processes in our machine?

I am using ubuntu 13.04 on a Intel i7 (first generation) processor. Can i find out how my OS is scheduling processes?? I want to find out whether it is using a Fair share or Priority based algorithm. If so, what can be the possible time slice value…
1
vote
3 answers

Check a log file every 15 minutes with Python

I am trying to open a log file every 15 minutes and see if the file called a 'finalize' string. I know how to check the file for the string but I do not know if there is an easy way to have the script look every 15 minutes. Is there a module of some…
Michael R
  • 259
  • 5
  • 16
1
vote
1 answer

Getting the free version of scheduler DhtmlX

I'am using DhtmlX library, and it's works fine but this error appears: The evaluation period is expired , when i took a look to website , i saw a standard version, with NuGet i just find the commercial versions : So how can i download the standard…
Lamloumi Afif
  • 8,941
  • 26
  • 98
  • 191
1
vote
1 answer

Weekly scheduling in Rails

I want to allow teachers to be able to login to my Rails 3.2 app and be able to set when they are available. So instead of having two datetime fields where an actual date is stored is stored for starts_at and ends_at, I'd like for them just to say…
jmcharnes
  • 707
  • 12
  • 23