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

hadoop usage for non-mapreduce tasks

Can we use hadoop as a framework just to schedule different tasks without using MapReduce paradigm? I want to schedule group of tasks using my scheduling algorithm. According to my algorithm, tasks are to be run on different machines, but the whole…
srikayala
  • 446
  • 6
  • 21
1
vote
2 answers

Kill Spring scheduled thread

Is there anyway to timeout a scheduled task (kill thread) in Spring if the task takes to long or even hangs because of remote resource unavailability In my case, tasks can take too long or even hang because they're based on HtmlUnitDriver (Selenium)…
frandevel
  • 747
  • 7
  • 22
1
vote
1 answer

Writing a CRON tab for windows and linux programatically only, without using any application

I am trying to create a CRON JOB or Schedule Task(for Windows). I searched over net and found several tutorials, But ended up with lot of confusion. Some try to explain using a Cpanel, some use a Task Scheduler. As a developer what if i don't have…
Ramaraju.d
  • 1,301
  • 6
  • 26
  • 46
1
vote
2 answers

Resource scheduling application

I'm trying to implement an application that coordinates multiple users who are scheduling exclusive resources. The schedule data must maintain strong consistency over a network with a single master node. The scheduled resources could be anything…
Kris Walker
  • 897
  • 1
  • 8
  • 14
1
vote
1 answer

Scheduling micro tasks in Java

I have a scanario whereby I'd like to replay events from a file into JMS respecting the timestamps of each event. There are many hundreds of thousands of events. Some events are only one or two milliseconds apart some are seconds apart. Any…
Dan
  • 9,681
  • 14
  • 55
  • 70
1
vote
1 answer

Dynamic programming - task scheduling

This is a question nobody was able to answer correctly to at a "flash test" in my class in my college: We are given: int N < 1000 slots of time int[] C: -10 000 <= C[i] <= 10 000 payment corresponding to each of the slots int T: number of slots we…
1
vote
1 answer

SJF preemptive scheduling

I got this table for pre-emptive Shortest Job First JOB ARRIVAL Burst TIME Time A 15 5 B 27 8 C 19 7 D 4 6 E 10 8 F 52 4 G 33 10 H 38 …
1
vote
0 answers

order of setting cpu affinity and scheduling on multicore systems (Linux 2.6)

I have some doubts regarding the order of setting cpu affinity and scheduling on multicore systems (Linux 2.6) Suppose (a hypothetical situation) I have a process and I have set it's affinity to core1 and I suspend that process (put in sleep mode)…
ajay saini
  • 305
  • 1
  • 2
  • 8
1
vote
1 answer

Create an archive with current date and time in file name using 7z command line

Today I lost my whole Far Cry 3 save game suddenly. So now I want to backup it's save game folder automatically on a certain period of time using windows task scheduling. I want to include date and time in archive file name. Here is my…
shashwat
  • 7,851
  • 9
  • 57
  • 90
1
vote
6 answers

Round Robin Scheduling Program

I have been working on a Round Robin Scheduling Program. My inputs are: Process Arrival Time Burst Time 1 0 4 2 2 2 3 4 3 4 6 5 …
Ankur Sinha
  • 6,473
  • 7
  • 42
  • 73
1
vote
1 answer

How to schedule hadoop jobs using BMC Control-M?

Anybody knows how to control/schedule Hadoop jobs using BMC Control-M software? Is it even possible? I have tried Ooozie and want to explore more options for scheduling hadoop jobs. Please enlighten!
Shekhar
  • 11,438
  • 36
  • 130
  • 186
1
vote
2 answers

How to simulate a scheduler?

In my firmware I write to MicroSD in a background task, and I've got a lot of higher-priorities interrupts enabled, some of which can take several milliseconds. So the writing/reading from SPI can be interrupted at any moment, and for writes that…
Maestro
  • 9,046
  • 15
  • 83
  • 116
1
vote
1 answer

Can Hadoop Fair/Capacity Scheduler be used on MR1?

From what I have read, YARN (MRv2) allows a way to plug in a scheduler, replacing the default FIFO scheduler. My question is, can we do the same in MRv1? Is there a way to replace the FIFO scheduler in the older version of Hadoop, or is this…
karkum
  • 427
  • 4
  • 16
1
vote
1 answer

C#: get next execution time of window service

I am working on a window service and I have to schedule it. Schedule is set to any three days of a week and four times a day. At any time when one starts service, It must pick the next execution time. This next execution time can be in the same day…
Lali
  • 2,816
  • 4
  • 30
  • 47
1
vote
1 answer

Does waiting on a mutex, condition variable or I/O automatically yield() the thread?

It would seem to be a no-brainer, but just wanted to check if this is guaranteed (on Linux). Is the thread precluded from scheduling until the wait condition is satisfied? Or will the thread get scheduled, figure out it's still waiting and yield()…
Benito Ciaro
  • 1,718
  • 12
  • 25
1 2 3
99
100