实时任务通常分类为–硬和软,但在广泛的范围内,实时任务分类为:
- 硬实时任务
- 公司实时任务
- 软实时任务
1.公司实时任务:
公司实时任务是与时限相关联的此类实时任务,任务需要在截止期限内产生结果。尽管公司实时任务与硬实时任务不同,因为一旦超过了截止期限且任务未完成,硬实时任务便会失败,但系统会发生故障,但是即使在截止期限过去之后,如果是公司实时任务,系统也会执行不失败。
例子:
1. Video conferencing
2. Satellite based tracking
2.软实时任务:
软实时任务是这种类型的实时任务,它们也与时间限制相关联,但是在此时序约束未表示为绝对值。在软实时任务中,即使在截止日期之后,也不会认为结果不正确,也不会发生系统故障。
例子:
1. Web browsing
2. Railway Ticket Reservation
公司和软实时任务之间的区别:
FIRM REAL-TIME TASKS | SOFT REAL-TIME TASKS |
---|---|
It needs to be completed within the deadline. | It also needs to be completed within deadline but not strictly. |
The value of associated timing constraint is taken as absolute. | The value of associated timing constraint is taken as average value. |
The utility of result becomes zero after the deadline. | The utility of result decreases after the deadline but it gradually becomes zero. |
Result obtained after deadline is considered incorrect. | Result obtained after deadline is not incorrect. |
It is widely used in multimedia applications. | It is less used in such applications. |
It is less used in practical applications. | It is widely used in practical applications. |
Example: Satellite based tracking. | Example: Railway ticket reservation. |