我們對操作系統的分析與設計的思路采取的是現在最流行的設計思路,即先將kernel模塊化並按其功能劃分成幾個相對獨立的部分,由我們課題組內的幾名同學分頭完成。我負責OSKit的線程部分,在OSkit中,資源分配和調度的單位是線程,並不是進程。所以,線程便成為了整個系統的核心。
由於線程部分極為復雜且相關性較強,所以我采取了一種從整體到局部再到整體的分析方法詳細論述了OSKit的線程機制。由於OSKit是一套完整的操作系統開發平台,它既繼承了LINUX的許多優點又在許多地方有所突破和創新,所以我在寫論文的時候注意到了OSKit比LINUX新在何處,並作了詳細的介紹,供大家參考。
本文語言通俗易懂,敘述由淺入深,源代碼分析結構清晰、一幕了然,對人們迅速完整了解OSKit的線程部分和今後的研發工作都有一定的幫助和參考價值。
值得提起的是,我們在分析OSKit的同時,編寫了一個演示程序,供各位老師參觀。
abstract
This paper mainly discuss the thread mechanism of OSKit. There are three parts six chapters in this paper , they are : thread communication ,thread initialization and thread scheduler.
In the workgroup , I responsible for OSKit threads . In OSKit , thread rather than process is the resource distribute and schedule unit . So thread is the core of OSKit . OSKit is a whole set of OS develope toolkit , it inherit from Linux and has some improvement on realtime and thread mechanism respect.
In this thesis , I compare OSKit and Linux , describing the difference between them in thread mechanism .This paper can help OS developer understand OSKit thread mechanism rapidly . By the way, we provide some OSKit examples to demonstrate OSKit characteristics.
湯海京([email protected])