Skip to content

A class for scheduling tasks to run at a specified time in future.

Notifications You must be signed in to change notification settings

kamalacharya/DelayedScheduler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DelayedScheduler

A class for scheduling tasks to run at a specified time in future. It demonstrates the use of multi-threading, priority queue and synchronization.

INPUTS:

  1. A Runnable object that is to be scheduled for delayed run
  2. A timestamp in future (in milliseconds) when the task is to be run

OUTPUTS:

  1. No immediate return. The specified task is scheduled.
  2. The task is executed at (or prtty close to) the specified time.

Possible improvements that can be made:

  1. Use a thread-pool for running the specified tasks instead of creating a new one everytime.

About

A class for scheduling tasks to run at a specified time in future.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages