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
12
votes
2 answers

Laravel Task Scheduling set to run every minute but it run only once

I am using Laravel Task Scheduling. I defined a custom command and set it to run every minute like: $schedule->command('dailyk')->everyMinute(); Then I used the following command to run the task: php /var/www/stockhit/artisan schedule:run 1>>…
alextre
  • 237
  • 1
  • 3
  • 9
12
votes
2 answers

CPU Scheduling : Finding burst time

In the FCFS scheduling algorithm the drawback is that if a process P1 with a higher burst time comes before some processes P2,P3... with much smaller burst times then the average waiting time and average completion time is pretty high. A solution…
Dubby
  • 1,154
  • 3
  • 16
  • 31
12
votes
4 answers

Is it possible to run a VBScript in UNIX environment?

I've a Vbscript for merging excel sheet into a single workbook. I would like to know whether we could execute vbscript (.vbs) file in unix system. If yes, please help me with the procedures. Thanks in advance.
arunpandiyarajhen
  • 643
  • 12
  • 20
  • 51
11
votes
1 answer

How to scale the Quartz scheduler?

I plan to use the Quartz scheduler as I read many good opinions about it. My problem is as follows: I will have thousands of triggers living in the system at any given time. Most of the triggers will fire just one event and die. In addition, it is…
David Rabinowitz
  • 29,904
  • 14
  • 93
  • 125
11
votes
3 answers

How to check if celery task is already running before running it again with beat?

I have a periodic task scheduled to run every 10 minutes. Sometimes this task completes in 2-3 minutes, sometimes it takes 20 minutes. Is there any way using celery beats to not open the task if the previous task hasn't completed yet? I don't see…
cmcjake
  • 159
  • 1
  • 9
11
votes
2 answers

Worker Scheduling Algorithm

The Problem Here's the essence of the problem I want to solve. We have workers taking care of children in a nursery for set times during the weekend. There's 16 different slots to fill in one weekend. So for a 4-week month there's 64 slots to fill.…
JonH
  • 821
  • 11
  • 19
11
votes
1 answer

What is the exact definition of 'process preemption'?

Wikipedia says: In computing, preemption is the act of temporarily interrupting a task being carried out by a computer system, without requiring its cooperation, and with the intention of resuming the task at a later time. Other sources…
LordFenerSSJ
  • 195
  • 1
  • 2
  • 10
11
votes
2 answers

Does DropWizard natively support scheduled tasks?

DropWizard allows you to define administrative tasks and execute them remotely by hitting a URL. DropWizard apps also have a few built-in admin tasks, such as the Garbage Collector, which can be hit by sending a GET to…
IAmYourFaja
  • 55,468
  • 181
  • 466
  • 756
11
votes
13 answers

todo.txt and task management

Apologies if this has been covered frequently, but I was wondering about how other people approach personal task management. I've read (parts of) GTD, proceeded to get excited, installed a tonne of plug-ins all over the place, then let it all fall…
codeinthehole
  • 8,876
  • 3
  • 25
  • 34
11
votes
2 answers

System.Threading.Timer vs System.Threading.Thread.Sleep resolution - .NET Timer not using system clock resolution

Questions: Why is the System.Threading.Timer keeping the 15ms resolution despite the OS clock resolution is much more precise? What is the recommendable way to achieve 1ms timing events resolution without busy CPU waiting? To stress once more:…
Jan
  • 1,905
  • 17
  • 41
11
votes
3 answers

How to run processes piped with bash on multiple cores?

I have a simple bash script that pipes output of one process to another. Namely:. dostuff | filterstuff It happens that on my Linux system (openSUSE if it matters, kernel 2.6.27) these both processes run on a single core. However, running…
P Shved
  • 96,026
  • 17
  • 121
  • 165
11
votes
3 answers

How to cancel Spring timer execution

I need to cancel Spring timer execution or at least change the execution frequency based on some conditions. Was using both org.springframework.scheduling.quartz.SimpleTriggerBean and org.springframework.scheduling.timer.ScheduledTimerTask. Cannot…
BigWonder
  • 225
  • 1
  • 4
  • 18
11
votes
2 answers

Can't find "org.springframework.scheduling.quartz.JobDetailBean" spring + quartz

I have in my build path both quartz 1.8.3.jar and Spring 3.0.6 jars, but the package that appears in all tutorials for spring + quartz scheduling isn't available. Where i can find it? "org.springframework.scheduling.quartz.JobDetailBean"
Eu Vid
  • 653
  • 1
  • 8
  • 21
11
votes
9 answers

Job queue optimization algorithms

We have an application that requires assignment of jobs to resources. The resources have a number of attributes that define their suitability to a particular job -- some are preferences, some are hard constraints (all of the membership variety, e.g.…
sehugg
  • 3,615
  • 5
  • 43
  • 60
10
votes
5 answers

How to implement a practical fiber scheduler?

I know the very basics about using coroutines as a base and implementing a toy scheduler. But I assume it's oversimplified view about asynchronous schedulers in whole. There are whole set of holes missing in my thoughts. How to keep the cpu from…
Cheery
  • 24,645
  • 16
  • 59
  • 83