With the development of applications towards distribution,their functions and complexities expand greatly. Real-time applications and normal applications tend to be blending and penetrating with each other. The CORBA (Common Object Request Broker Architecture) makes a big success as a distributed network integration middle-ware,but the requirement for application's QoS becomes more and more important. This makes Concurrency and Real-Time become two hot research spots in the field of distributed object middle-ware technology. Multithreading is a kind of important feature for real-time ability of a general operating system,and at the same time it provides a solution to implement the concurrency ability of ORB (Object Request Broker) Core and a effective way to control computing resources for a real-time ORB.From the start point of Real-Time CORBA requirement,this thesis studies the real-time extensions and the thread scheduling model of general operating systems,designs and implements a real-time portable thread library,and make use of it to implement Real-Time CORBA extension as a part of StarBusS.O.The real-time thread library is a kind of Object Oriented thread library,which abstracts the local thread mechanism and provides C++ thread interfaces with the style of Java thread. So it gives much more flexibilities and controls to higher-level software. Particularly,it aims at the requirements to the priority and the schedule of the real-time system,exploits the real-time ability of thread library,and implements a fixed-priority based scheduling algorithm and a mutex with priority inheritance protocol which can avoid priority inversion and give much more predictability or determinism to real-time system. |