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
7
votes
5 answers

How to Pass Arguments to Timertask Run Method

I have a method and I want it to be scheduled for execution in later times. The scheduling time and method's arguments depend on user inputs. I already have tried Timers, but I have a question. How could It be possible to pass arguments to Java…
sjtaheri
  • 4,409
  • 3
  • 19
  • 15
7
votes
2 answers

Quartz.Net - Every 3 months

I'm trying to call something every 3 months (quarterly) in Quartz.NET (using both stable and latest version 2 which is beta with same results). I create cron trigger with 0 30 8 3 */3 ? * to be called every 3 months at 8.30am on third of the month…
Luke
  • 1,872
  • 20
  • 31
7
votes
1 answer

Python Celery inconsistent cronjob timing for task scheduling with now function

The situation I have a celery task I am running at different timezone for each customer. Basically, for each customer in my database, I get the timezone, and then I set up the celery task this way. 'schedule': crontab(minute=30, hour=14,…
Espoir Murhabazi
  • 5,973
  • 5
  • 42
  • 73
7
votes
4 answers

Difference between OS scheduling and RTOS scheduling

Consider the function/process, void task_fun(void) { while(1) } If this process were to run on a normal PC OS, it would happily run forever. But on a mobile phone, it would surely crash the entire phone in a matter of minutes as the HW watchdog…
Pavan Manjunath
  • 27,404
  • 12
  • 99
  • 125
7
votes
8 answers

Java library class to handle scheduled execution of "callbacks"?

My program has a component - dubbed the Scheduler - that lets other components register points in time at which they want to be called back. This should work much like the Unix cron service, i. e. you tell the Scheduler "notify me at ten minutes…
Hanno Fietz
  • 30,799
  • 47
  • 148
  • 234
7
votes
2 answers

Doing DB Queries Verus Storing Items in A collection?

I am trying to make to make a reminder system and I am using quartz for my scheduling. However I come up with a couple possible ways how to do what I need to do but I am not sure what the best way is and how to test it. Basically I have a reminder…
chobo2
  • 83,322
  • 195
  • 530
  • 832
7
votes
4 answers

A clear step by step process for running a periodic task in a django application

I have been trying a long for creating a periodic task in Django but there are lot of version constraints and not a clear explanation.
7
votes
1 answer

What is the difference between timers.startSingleTimer and scheduler.scheduleOnce in Akka Actor?

I am designing an actor that should schedule sending a message to itself. I notice that there are at least two ways to do it. I would like to understand the difference to choose the right one. The first is one method of akka.actor.Timers: def…
mkUltra
  • 2,828
  • 1
  • 22
  • 47
7
votes
2 answers

Spring scheduled fixedRateString as Duration

The @Scheduled documentation here states that the fixedRateString value can be the delay in milliseconds as a String value, e.g. a placeholder or a java.time.Duration compliant value. Meaning I can either write @Scheduled(fixedRateString =…
Ben
  • 3,989
  • 9
  • 48
  • 84
7
votes
4 answers

Algorithmic staff scheduling solutions

At a gross level, the problem is simple: schedule an army of staff for one-person-per-day coverage, at any given day the staff is split into 3 pools, each staff has a vacation requirement, each staff has at most 2 shifts per week, etc. I'd hate to…
Ming K
  • 1,117
  • 1
  • 13
  • 20
7
votes
1 answer

Creating Spring Framework task programmatically?

I need to create task on the fly in my app. How can I do that? I can get scheduler with @autowired annotation, but scheduler takes Runnable objects. I need to give Spring objects, so that my tasks can use @autowired annotation too. @Autowired…
newbie
  • 24,286
  • 80
  • 201
  • 301
7
votes
3 answers

How can I test my cron job in localhost windows? (laravel 5.3)

I create a cron job on laravel 5.3 by editing app\Console\Kernel.php like this :
samuel toh
  • 6,836
  • 21
  • 71
  • 108
7
votes
3 answers

Advantages and disadvantages with Static- and Dynamic Scheduling

I'm opening this questions since I can't find easy to understand summarized information about this topic. There isn't even a good youtube-video that explains this. I'm currently studying realtime programming and statical- and dynamical scheduling is…
Ramo Mislimi
  • 184
  • 1
  • 1
  • 11
7
votes
1 answer

pthreads with real time priority

I need to manage a pool of threads having different priorities, so I wrote the following thread startup procedure: static int startup(thrd_t *thrd, thrd_sync_t *sync, int prio) { pthread_attr_t attr; int err; struct sched_param param =…
Dacav
  • 13,590
  • 11
  • 60
  • 87
7
votes
2 answers

Userspace Thread Latency during IO operations

I'm working on a project using an embedded Linux kernel and I encounter a problem of thread latency when accessing a flash memory. My application is multithreaded and some threads have to complete a given task in less than 500 ms. The problem is…