Download 1 Introduction

Transcript
5.2.4 Blocks
The implementation of the blocks are more complicated to describe. Here it’s the work of the preprocessor
that counts. It has to keep track of all the specifications and extract where needed. How the preprocessor
handles this is up to the implementor of it.
6 Conclusions
Implementing real-time and concurrency applications object-oriented is a better way than the old fashion
functional way. This is not only true for real-time and concurrency applications but for almost any kind of
application. But as we have described there are problems involved. One of the biggest is the problem with
inheritance, the inheritance anomaly. The three most common anomalies are:
• Mixing real-time specifications with application code
• Non-polymorphic specifications
• Orthogonally restricting
Our way around this is to work with blocks that have the same type of restriction. With blocks we have
loosen the bindings between the real-time specifications and the application code. Another problem is the
one with valid data in concurrent systems. The states are our solution on this problem. The states helps us
have a better control over our systems.
There still exists some problems that has to be solved. One problem we have is when we are using multiple
inheritance. In this case we have to blame C++ for the problems because the conflicts that may occur
depends on how C++ is done.
Another thing that we are thinking about is the possibility of using a pool of threads for the objects and like
[2] Y. Ishikawa, H. Tokuda and C. W. Clifford restricting how many threads each method can occupy and
by this have better control the execution.
7 Acknowledgement
We would like to thank Jan Bosch for his support and the persons involved to check the manuscript. We
would also like to thank Maria for her support when writing this paper.
8 References
[1] Author: M. Askit, J. Bosch, W. van der Sterren and L. Bergmans
Title: Real-Time Specification Inheritance Anomalies and Real-Time Filters
[2] Author: Y. Ishikawa, H. Tokuda and C. W. Clifford
Title: An Object-Oriented Real-Time Programming Language
[3] Author: K. Takashio and M. Tokoro
Title: DROL: An Object-Oriented Programming Language for Distributed Real-Time Systems
[4] Author: L. Bergmans, M. Askit and K. Wakita
Title: An Object-Oriented Model for Extensible Concurrent Systems: The Composition-Filters Approach
[5] Author: J.M Gwinn
Title: Object-Oriented Programs in Real-Time
17