DOI QR코드

DOI QR Code

Design of Scheduler Considering Real-Time Characteristic and Fault-Tolerant in Embedded System

임베디드 시스템에서 실시간성과 결함허용을 보장하는 스케줄러 설계

  • 전태건 (부경대학교 IT융합응용공학과) ;
  • 김창수 (부경대학교 IT융합응용공학과)
  • Received : 2010.08.10
  • Accepted : 2010.10.28
  • Published : 2011.01.31

Abstract

Embedded Systems need to ensure real-time of the task response time depending on the applied fields of it. And task could be faulty due to various reasons in real time systems. Therefore in this paper, we design a task scheduler that guarantees deadlines of periodic tasks and considers a fault tolerance of defective task in embedded system with a single processor. In order to provide real-time, we classify tasks with periodic/aperiodic tasks and applies RMS(Rate Monotonic Scheduling) method to schedule periodic tasks and can guarantees execution of aperiodic tasks by managing surplus times obtained after analyzing the execution time of periodic tasks. In order to provide fault tolerance, we manage backup times and reexecute a fault task to restore it's conditions.

임베디드 시스템은 적용되는 분야에 따라 태스크의 완료에 대한 실시간성이 보장되어야 하는 경우가 있다. 또한 실시간성을 제공하는 시스템에서는 다양한 이유로 인해 태스크의 결함이 발생할 수 있다. 그러므로 본 논문에서는 단일 프로세서를 가지는 임베디드 시스템에서 주기적 태스크 집합의 마감시간을 보장하면서 결함이 발생한 태스크의 결함을 허용하는 태스크 스케줄러를 설계한다. 임베디드 시스템에서 실시간성을 제공하기 위해서 태스크를 주기적 및 비주기적 특성으로 분류한 후 주기적 태스크는 고정 우선순위 실시간 태스크 스케줄링 기법에서 최적의 알고리즘으로 알려진 RMS(Rate Monotonic Scheduling) 기법을 적용하여 실행한다. 주기적 태스크들의 실행 시간을 분석한 후, 결정되는 잉여 시간을 관리함으로써 비주기적 태스크들의 실행을 보장한다. 또한 일시적인 태스크의 단일 결함을 허용하기 위한 결함 허용 기법을 제공한다. 이를 위해 백업 시간을 관리하고 태스크에서 결함이 발생할 경우, 결함이 발생한 태스크를 재실행함으로써 복구 작업을 수행한다.

Keywords

References

  1. J.T. Baldwin, Predicting and Estimating Real-Time Performance. Embedded Systems Programming, 8(2), Feb. 1995.
  2. L. Doyle and J. Elzey, "Successful Use of Rate Monotonic Theory on a Formidable Real Time System," In 11th IEEE Workshop on Real- Time Operating Systems and Software, pages 74-78. IEEE, May 1994.
  3. H Kopetz, "Automotive Electronics-Present State and Future Prospects," In FTCS 25, 1995.
  4. K. W. Tindell, "Fixed Priority Scheduling of Hard Real-Time Systems," PhD thesis, Univ of York, UK, 1994.
  5. C.L Liu and J.W. Layland, "Scheduling Algorithms for Multiprogramming in a Hard Real-Time Environment," JACM, 20(1), pp. 46-61, 1973. https://doi.org/10.1145/321738.321743
  6. John Lehoczky, Lui Sha and Ye Ding, "The Rate Monotonic Scheduling Algorithm: Exact Characterization And Average Case Behavior," RTSS pp.166-171, 1989.
  7. J.P. Lehoczky and S. Ramos-Thuel, "An optimal algorithm for scheduling soft-aperiodic tasks in fixed-priority preemptive systems," Proc. 13th Real-Time Systems Symp., pp. 110-123, 1992.
  8. T.S. Tia, "Utilizing Slack Time for Aperiodic and Sporadic Requests Scheduling in Real- Time Systems," Technical Report No. UIUCDCS-R-95-1906, University of Illinois
  9. 정경훈, 김병훈, 이동건, 김창수, 탁성우, "확장성 및 실시간성을 고려한 실시간 센서 노드 플랫폼의 설계 및 구현," 한국통신학회논문지 제32권 제8호, pp.509-520, 2007.
  10. 김병훈, 정경훈, 탁성우, "주기 및 비주기 태스크의 효율적인 관리를 위한 실시간 센서 노드 플랫폼의 설계," 정보처리학회지 제14-C권 제4호 통권 제114호, pp.371-382, 2007.
  11. 김희헌, 박학봉, 박문주, 박민규, 조유근, 조성재, "잉여 여유시간을 이용한 연성 비주기 태스크들의 효율적인 스케줄링," 정보과학회논문지, 시스템 및 이론 제36권 제1호, 2009.2.
  12. S. Gosh, R. Melhem, D. Moss, and J. Sensarma, "Fault-tolerant rate-monotonic scheduling," Real-Time Systems, vol. 15, no. 2, pp.149-181, 1998. https://doi.org/10.1023/A:1008046012844
  13. M. Pandya and M. Malek, "Minimum achievalble utilzation for fault-tolerant processing of periodic tasks," IEEE Trans. on Comput., Vol.47, pp.1102-1113, 1998. https://doi.org/10.1109/12.729793
  14. S. Gosh, R. Melhem, and D. Moss, "Fault-tolerance through scheduling of aperiodic tasks in hard real-time multiprocessor systems," IEEE Trans. Parallel and Distributed Systems, Vol.8, No.3, pp. 272-284, 1997. https://doi.org/10.1109/71.584093
  15. Y. S. Hong and H. W. Goo, "A fault-tolerant technique for scheduling periodic tasks in real-time systems," Proc. of the Second IEEE Workshop on Software Technologies for Future Embedded and Ubiquitous Systems, 2004.
  16. Ching-Chih Han, Kang G. Shin, and Jian Wu, "A Fault-Tolerant Scheduling Algorithm for Real- Time Periodic Tasks with Possible Software Faults," IEEE Transactions on Computers, Vol.52, No.3, pp.362-372, Mar. 2003. https://doi.org/10.1109/TC.2003.1183950
  17. 정경훈, 탁성우, 김창수, "결함허용이 가능한 임베디드 실시간 태스크 관리 메커니즘," 멀티미디어학회논문지 제10권 제7호, pp.882-892, 2007.7.
  18. S. Ghosh, D. Mosse, and R. Melhem, "Implementation and Analysis of a Fault-Tolerant Scheduling Algorithm," IEEE Transactions on Parallel and Distributed Systems, Mar 1997.

Cited by

  1. 다중 멀티미디어 스트리밍을 위한 멀티코어 시스템 기반의 실시간 스케줄링 기법 vol.14, pp.11, 2011, https://doi.org/10.9717/kmms.2011.14.11.1478
  2. 마이크로컨트롤러 인터럽트를 사용한 임베디드시스템의 다중 상태기계 모델링 기반 구현 기법 vol.16, pp.1, 2011, https://doi.org/10.9717/kmms.2013.16.1.075
  3. MSR_FSB_FREQ 제어를 이용한 윈도우 운영체제에 실시간 처리 방법 vol.24, pp.1, 2011, https://doi.org/10.9717/kmms.2020.24.1.095
  4. RTiK과 DPC 제어를 통한 윈도우즈 기반의 검사장비에서 MIL-STD-1553B 통신의 실시간 구현 vol.24, pp.2, 2011, https://doi.org/10.9717/kmms.2020.24.2.199