CMSC 698: Indepedent Study Project Report

Title: Real Time System In Linux

Advisor: Dr. Jim Plusquellic

Student: Chuanfu Lin



Introduction:

Real time systems can be divided into two categories, the hard real time system and the soft real time system. RT-Linux(hard real time system) uses another kernel beneath Linux kernel and the new kernel handles the real time event only. It has some disavantages because the process can not use any of the Linux services. The other type is soft real time system (POSIX 1003.1b), which provide the system call to achieve the real time task in the non-time-critical situation. It has the problem of accuracy. The combination of these two system, firm real time system, is proposed to have the benefitions of these two systems. For example, KURT (Kansas University Real Time) Linux , is the one that takes advantage of all the utilities of Linux and has the desired accuracy of hard real time system.

In this project, we want to compare the mechanism between the hard real time and firm real time system using certain multimedia application. In this kind of application, resources other than linux kernel are needed and the requirement of time-accuracy can be an option depends on different usage. We choice the video player finally as our plateform because of the following reasons:
  1. It reads the data from the external hardware device. The drivers for this device can be treaed as module. Then we can modify these modules to satisfiy the real time requirements
  2. Video4Linux driver is combined with linux after kernel 2.2.0. It's a new field and contains interesting topics as for as the kernel is concerned.
We choice kernel 2.2.0 with RT-Linux releaseDpatch as the plateform for the hard real time system and kernel 2.1.126 with kert-v1.23.126 as the plateform for the firm real time system. The detailed implementatoins of these two sytems are described below.

RT Linux

KURT Linux

Comparison

Conclusion

HOWTOs