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
1 answer

Is there an easier way to track scope changes in ExtremePlanner?

I am about to join a new software team midway through a project. They are using ExtremePlanner to track their progress. While they tracking tasks completed, they are not tracking how the estimated size of the project is changing over time. In the…
Geoff Burns
  • 525
  • 2
  • 7
  • 19
1
vote
0 answers

Multithreading for Compute-bound jobs

How does the process/thread scheduler work on a typical system, with respect to fairness and granularity? Does the scheduler pass instructions to the processor by switching between processes or between threads? If the latter is the case, then, can…
jortiz81
  • 539
  • 2
  • 8
  • 20
1
vote
1 answer

Process With FIFO Scheduling Still Being Switched off?

$ sudo time -f '%c %w' chrt -f 99 ./ft 1234567890 26 1 I am curious why my process has been involuntarily (because the time slice expired) context-switched 26 times even though I set the scheduler to FIFO with the max priority 99: $ chrt…
Hei
  • 1,844
  • 3
  • 21
  • 35
1
vote
1 answer

Does it mean that most time is IO? [./run 278.74s user 83.56s system 0% cpu 13:50:45.69 total]

I have a long running task which is a Spark job (map/reduce variant) which runs locally on Mac OS (Mac Pro 12 Core). The time command returned: ./run 278.74s user 83.56s system 0% cpu 13:50:45.69 total Does this mean that most of the time the job…
Alfa07
  • 3,314
  • 3
  • 26
  • 39
1
vote
2 answers

Decouple roles in Quartz.net

I am currently investigating using Quartz.NET for scheduling tasks in my system. As an example of how I am using Quartz.NET, below is a very simple example demonstrating how I am scheduling a task: class Program { static void Main(string[]…
Lawrence
  • 3,287
  • 19
  • 32
1
vote
3 answers

Is there a project that implements a scheduler based on a .NET service?

Is there an implementation of a Windows service that can call custom .NET code that can be scheduled to run on specific intervals? Or should I implement my own (which I am currently doing), but I think it's better not to reinvent the wheel :) I…
Karim
  • 6,113
  • 18
  • 58
  • 83
1
vote
2 answers

Benchmarking Hadoop Map-Reduce application

I need to compare two Hadoop scheduling algorithms by job execution time. What could I use to get the duration of the execution for all tasks?
MihaelaO
  • 55
  • 5
1
vote
2 answers

Use of the random function to randomise scheduled tasks

I am trying to use the code: import random import datetime from sched import scheduler from time import time, sleep s = scheduler(time, sleep) random.seed() def run_periodically(start, end, interval, func): event_time = start while…
AEA
  • 213
  • 2
  • 12
  • 34
1
vote
3 answers

Is this an acceptable way to make a simple "scheduler" in C#?

I'm making a simple scheduler with C# in .Net. All it does is execute a simple select statement on a table in a SQL Server DB once per minute (this does not need to scale or anything... the db does not have a high load). Here is my proposed…
MrDatabase
  • 43,245
  • 41
  • 111
  • 153
1
vote
2 answers

Methods of detecting when a program code is trying to acquire a spin-lock

Priority inversion is a common and somewhat old problem. Those who dealt with OS process scheduling, especially if there are real-time requirements, are familiar with it. There are few well-known solutions to the problem, each having its pros and…
user405725
1
vote
1 answer

GPGPU: CUDA kernel configuration for 1D thread indexing - threads, blocks, shared memory, and registers

Suppose I have N tasks, where each tasks can be performed by a single thread on the GPU. Suppose also that N = number of threads on the GPU. Question 1: Is the following an appropriate way to launch a 1D kernel of maximum size? Will all N threads…
cmo
  • 3,762
  • 4
  • 36
  • 64
1
vote
1 answer

scheduling execution of MS Access DB

I have a MS Access 2007 DB that is being executed via Windows NT scheduler. Basically, I created this entry in Windows Scheduler that is run every night at midnight. I:\Case_Management_Systems\TRIAL_UNIT\Docket_Sheets_Tracking.accdb /x…
1
vote
1 answer

Get process's timeslice in user mode

How can I get the value of process's timeslice in user mode? I designed a new scheduling policy, and I want to check if processes with the same policy (my policy) have the same timeslice to run. It is not a real-time process.
Nimo
  • 23
  • 8
1
vote
4 answers

how to run a gwt servlet automatically in some particular time interval?

Please help me about this issue... In my application i have calender where user can set the events for particular day.. this event info is store in database.... now i want my application to automatically send an email to that user on that assigned…
azhar_salati
  • 1,554
  • 5
  • 28
  • 54
1
vote
1 answer

So the design of client-server separation is not the bottleneck of X Window?

In the answer of this, it mentioned: People also hear that X uses the "network" and think this is going to be a performance bottleneck. "Network" here means local UNIX domain socket, which has negligible overhead on modern Linux. Things that …
Justin
  • 169
  • 5