发信人: bigapple (红富士), 信区: NTM
标  题: (RT-Linux-2)Relationship between OS and RT 
发信站: 哈工大紫丁香 (Wed Jun 21 09:09:05 2000) , 站内信件

What is the relationship between the Operating System and Real-Time? 

The semantic correction of the response is the responsibility of the programme
r and the temporal correction depends on the operating system (O.S.).

The O.S. has to support and organize the execution of all the tasks, it is als
o the duty of the O.S. to handle the interruptions. The O.S. must offer: 

The algorithm for scheduling 
The mechanisms for inter-process communication (semaphores, messages, etc.) 
Handle interruptions. 
Activate tasks in each of its periods. 
Contrary to "normal" O.S., the goal of Real-time Operating Systems is to minim
ize the complexity. One does not need an operating system that does many thing
s, what is really important is that tasks are run with predictability and spee
d.

It is preferable an O.S. that normally takes 10 time units (t. u.) on performi
ng a context change and in the worse case takes 12 t. u., than another O.S. th
at on average takes 3 t. u. But from time to time it may take up to 20 t. u.

We should not be surprised discovering that Real-Time Operating Systems are "s
lower" than the normal O.S. Occasionally, in order to get a predictable behavi
our it may be even be necessary to disable the cache memory, with the associat
ed performance loss. The cache memory, processors with pipeline units and the 
algorithms for jump prediction are clear enemies of predictability and therefo
re real-time operating systems.

 

POSIX TR Extensions.
POSIX are the initials for Portable Operating System Interface (And what is an
 O.S. without an X at the end?). This is a standard that intends to achieve so
ftware portability at the source code level. In other words, a program for an 
operating system that is POSIX compliant should compile and execute under any 
other POSIX, even if it is from a different manufacturer. The POSIX standard d
efines the interface the O.S. should offer to applications: the set of system 
calls. POSIX is being developed by the IEEE (Institute of Electrical and Elect
ronic Engineering) and standarized by ANSI (American National Standards Instit
ute) and ISO (International Standards Organisation). Obviously POSIX is based 
on UNIX. The majority of the O.S. (including Windows NT) tend through their va
rious versions towards POSIX compatibility.


 
The work on the POSIX definition is divided in several work-groups involving c
omputer manufactures, software companies, government officials and computer gu
rus. Each group takes care of designing an aspect of the operating system. For
 example, the group named POSIX.4 takes care of the issues concerning real tim
e.

The extension POSIX.4 -- renamed as 1003.1b since 1993 -- allow the usage of a
n O.S. in real-time situations. Clearly, the great majority of these extension
s are related to time management and process priorities, there are also system
 calls to facilitate the inter-process communication.

The POSIX extensions are designed to enhance the control on the management of 
resources of the O.S. 

Linux 2.0 has many of the POSIX extensions system calls for real time implemen
ted... but this aspect of Linux is something we will discuss in a future artic
le. Version 2.2, most likely will be 100% compatible POSIX 1003.1b. 


--
※ 来源:.哈工大紫丁香WWW bbs.hit.edu.cn. [FROM: 203.123.8.4] 
[百宝箱] [返回首页] [上级目录] [根目录] [返回顶部] [刷新] [返回]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
页面执行时间:3.014毫秒