Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6340639
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T19:52:24+00:00 2026-05-24T19:52:24+00:00

I have a scheduling problem where new jobs (sets of tasks whose execution is

  • 0

I have a scheduling problem where new jobs (sets of tasks whose execution is sequentially connected) arrive every few seconds or so.
Each job requires some resources to be allocated at known intervals.
For example:
Job j1 is a set of tasks for which we reserve resources {r1, r2, r3}
on a known scheduling pattern:

r1:[t0 .. t1=t0+td1], 
r2:[t2=t1+td2+i2 .. t3=t2+td3]
  • t0 being the start time of execution
  • td1 is the length of the resource allocation for r1
  • t1 being the end time of the resource allocation for r1
  • i1 is length of the waiting perioid between r1, r2 and so on.

schedule example

In the example, a new job j2 is being scheduled right after j1 execution has started.
The earliest start time for j2 is t1.
A job may take some minutes of execution most of which consists of waiting.

I have a scheduler that looks at the current reservation table and decides which is the earliest possible starting moment for a new job with fixed allocation times and waiting periods and makes the reservations accordingly.

(But in reality, the waiting period doesn’t really need to be fixed – but within some percentage (maybe 5%) and there may be alternatives to resource usage, for example, if resource r3.1 is booked, then 3.2 may be used as such to achieve the same thing.)

However, if the scheduler is required (yes, it’s been suggested) to be able to dynamically adjust all the schedule allocations when a new job arrives to maximize the total work done (in a day) by taking advantage of the fact that the waiting times need not be exactly as given and the possibility to parallel execution with some resrouce duplicates (3.1/3.2), then I’d be looking at a completely different scheduling scheme (than my current start-as-soon-as-possible approach).

  1. What scheduling scheme would you call that then?
  2. Any suggestions on approaching the (new) problem?
  • 1 1 Answer
  • 3 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T19:52:25+00:00Added an answer on May 24, 2026 at 7:52 pm

    As for your question regarding “alternatives to resource usage”:

    The pattern most commonly implemented to tackle that sort of problem is the Object Pool Pattern
    The most widely known example for this probably is the ThreadPool

    I suggest you implement a ResourcePool class with a int GetResource(ResourceType type, int durationInSeconds) method.
    The return value indicates when the next resource of the given ResourceType will be available

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this problem of scheduling tasks. Each task has a suggested start time
I have a question in scheduling jobs in web application. If we have to
I have one r function i want to run it automatically(scheduling) after every predefined
I'm new to Quartz scheduling and I have grasped the basics. But I'm having
I have a program that solves the weighted interval scheduling problem using dynamic programming
I have been working on a scheduling website for the past few weeks. I
I have a graph problem as follows and I need to optimize its execution
We have implemented quartz for scheduling.Every job produced have different key.It was working fine
I have an online service that receives incoming events (few every second). Service needs
We have a scheduling engine with large amounts of test data to test all

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.