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

What is the best way to delay thread starts until a specific time?

I am building an application which needs to call a certain API at specific times. I would like to set execution times for each of the calls, and have my execute function be called automatically when each call needs to execute. What's the best way to…
Amberite
  • 1,379
  • 3
  • 14
  • 27
1
vote
1 answer

In Windows Vista, what IRQL is the thread scheduler run at?

In Vista, what IRQL is the thread scheduler run at?
Tony The Lion
  • 61,704
  • 67
  • 242
  • 415
1
vote
1 answer

Quartz.net daily jobs keeps getting executed every minute

I have the code below. I would expect it to run daily at 17:00 if the config setting was not set otherwise the config setting will be used. So far no issue, the variable is set correctly. However: Instead of daily the job gets executed every minute…
Mounhim
  • 1,674
  • 1
  • 17
  • 32
1
vote
1 answer

When is the interval parameter of dbms_job.submit reevaluated?

In Oracle we can submit a job to the job queue using the following code: DECLARE X NUMBER; BEGIN SYS.DBMS_JOB.SUBMIT ( job => X, what => 'SYSTEM.INSERTDATE;', next_date => SYSDATE, interval …
Just a learner
  • 26,690
  • 50
  • 155
  • 234
1
vote
1 answer

increment the priority of a thread in Linux

I am reading data from a HID device using hiddev , there is a dedicated thread to read off of it, but it seems that thread is dropping some packets. I can see the packets in the kernel buffers(usbmon) but some of them don't reach user space. The…
Stb
  • 171
  • 2
  • 8
1
vote
2 answers

How to modify task_struct in Linux Kernel 3.8.0

I am currently working on a project involving modifying the way linux priorities are implemented. To do so I have : a custom syscall : That modifies the task_struct of a process to change its priority modified kernel/sched/fair.c modified the…
MSI
  • 844
  • 9
  • 8
1
vote
3 answers

Job execution every n weeks on weekdays a and b at x o'clock in Quartz

I'd like to trigger a job every 2 weeks on Monday and Tuesday at 10:00am (as an example) in Quartz 2.2.1. I'd though about using a CronTrigger but unfortunately a cron job can't be set up for "every 2 weeks" (see explanation here). Using a…
John
  • 896
  • 7
  • 25
1
vote
1 answer

Linux group scheduling for user not being applied to setuid-ed process

On the 2.6.28-11 Linux kernel, I am using setpriority to bias the amount of cpu time different user processes receive. User 1 is to receive double the CPU power of user 2. Using Linux's setpriority, I have assigned user 2 a lower priority (higher in…
BrainCore
  • 5,214
  • 4
  • 33
  • 38
1
vote
1 answer

OpenMP optimize scheduling of for loop

I need some help with OpenMP. Is it possible that if a thread ended in a for loop it helps then to another thread, dividing it? I have a loop in a loop where are breaks; and the threads doesn't end at the same time, so there are threads which has…
1
vote
0 answers

Daily workflow management using Quartz

I want to execute a workflow on a daily basis. The workflow for today will not start until the workflow for the previous day is complete. The workflow for a day has a bunch of tasks that execute in parallel at different timings (crons). Once these…
Venk K
  • 1,157
  • 5
  • 14
  • 25
1
vote
5 answers

How to implement time event scheduler in python?

In python how to implement a thread which runs in the background (may be when the module loads) and calls the function every minute Monday to Friday 10 AM to 3 PM. For example the function should be called at: 10:01 AM 10:02 AM 10:03 AM . . 2:59…
Vishal
  • 19,879
  • 23
  • 80
  • 93
1
vote
0 answers

Starting linux kernel threads without wake_up_process

I want to start several Linux kernel threads using kthread_create (not the kthread_run), but in my driver there are some probability that some of threads will be not woken up with wake_up_process. Is it correct to create all threads with…
osgx
  • 90,338
  • 53
  • 357
  • 513
1
vote
1 answer

Do all modern Kernels use 3 kinds of scheduler?

I'm referring to the Long-term, Mid-term, and Short-term scheduler. Do these three always work in conjunction during scheduling or can they be implemented separately? One without the other two or two without the other one? This really confuses me.
ccnaflic
  • 69
  • 3
1
vote
0 answers

What place in the code (sched.c) does CFS check the minimum timeslice?

I am understanding the implementation of CFS in the Linux kernel. My doubt is when the CFS calculates the ideal time for each task in a given epoch and a ideal time of a task is lower than min_granularity. What place in the code can I find the…
Carlos
  • 11
  • 2
1
vote
3 answers

Grails Quartz Job has no Hibernate session after upgrade, causing LazyInitializationException

I've upgraded a Grails 1.0.4 application to 1.1.1. After upgrading, I'm repeatedly getting Exceptions when executing my Quartz jobs (using Quartz plugin 0.4.1). The plugin is used to manually schedule jobs using Simple and Cron Triggers via a…
Rob Hruska
  • 118,520
  • 32
  • 167
  • 192