Combining VxWorks and μC/OS- Ⅱ these two RTOS, this paper try to study the operating principle of a real time kernel. As essential ingredients of a kernel, multitask entironment, the communication between tasks and system timer management are expatiated in this paper. Then, an application based on VxWorks is presented to analyze some familiar problems in RTOS applications which consist of the process to boot a system, interrupt application designing, network programming and device driver designing. Due to relations between hardware and software, this paper also introduces much knowledge about hardware resources of PC compatible system, such as programmable interrupt controller, system timer, PCI bus and related interface chip. Both theory and practice are introduced in this paper and the goal of this paper is to help developers to know more about the real time kernel and make use of RTOS more efficiently.
|