Scheduled-task pattern: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 1:
InA [[software development,design pattern]] '''scheduled-task pattern''' is onekeep track of actions and invokes them these actions, and invokes them at the appropriate times. (Note: it is not quite the same as [[designscheduler pattern]]s).
 
The '''scheduled task patternIntent''': is a [[design pattern]] used in [[software engineering]]. It is usedEnsure to ensure that desired operations are performed at specific points in the future.
 
'''Motivation''': In [[Real-time]] [[Computer software|systems]], it is often necessary to ensure that something is done at a specific time. Times Amay schedulerbe objectexpressed (note:as not"wall quitetime" the sameor as [[schedulersome pattern]])sort keepsof trackinternal oftime these("ticks", actionsmilliseconds-since-startup, and invokes them at the appropriate timesetc.).
 
If highly accurate scheduling of tasks is needed (to milliseconds or less), the scheduler task needs to run at a very high [[priority]], or be hooked into a high-frequency [[interrupt routine]].
Times may be expressed as "wall time" or as some sort of internal time ("ticks", milliseconds-since-startup, etc.).
 
'''Consequences''':
If highly accurate scheduling of tasks is needed (to milliseconds or less), the scheduler task needs to run at a very high priority, or be hooked into a high-frequency interrupt routine.
*''To be completed''
 
'''See also:''' [[Command pattern]], [[Memento pattern]]