Real-time computing with lock-free shared objects

被引:39
作者
Anderson, JH
Ramamurthy, S
Jeffay, K
机构
[1] Department of Computer Science, University of North Carolina, Chapel Hill
来源
ACM TRANSACTIONS ON COMPUTER SYSTEMS | 1997年 / 15卷 / 02期
关键词
critical sections; deadline monotonic; earliest deadline first; hard real time; lock free; rate monotonic; scheduling; synchronization; wait free;
D O I
10.1145/253145.253159
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
This article considers the use of lock-free shared objects within hard real-time systems. As the name suggests, loch-free shared objects are distinguished by the fact that they are accessed without locking. As such, they do not give rise to priority inversions, a key advantage over conventional, lock-based object-sharing approaches. Despite this advantage, it is not immediately apparent that lock-free shared objects can be employed if tasks must adhere to strict timing constraints. In particular, lock-free object implementations permit concurrent operations to interfere with each other, and repeated interferences can cause a given operation to take an arbitrarily long time to complete. The main contribution of this article is to show that such interferences can be bounded by judicious scheduling. This work pertains to periodic, hard real-time tasks that share lock-free objects on a uniprocessor. In the first part of the article, scheduling conditions are derived for such tasks, for both static and dynamic priority schemes. Based on these conditions, it is formally shown that lock-free shared objects often incur less overhead than object implementations based on wait-free algorithms or lock-based schemes. In the last part of the article, this conclusion is validated experimentally through work involving a real-time desktop videoconferencing system.
引用
收藏
页码:134 / 165
页数:32
相关论文
共 33 条
[21]   CONCURRENT READING AND WRITING [J].
LAMPORT, L .
COMMUNICATIONS OF THE ACM, 1977, 20 (11) :806-811
[22]   ON INTERPROCESS COMMUNICATION .1. BASIC FORMALISM [J].
LAMPORT, L .
DISTRIBUTED COMPUTING, 1986, 1 (02) :77-85
[23]  
Lehoczky J., 1989, Proceedings. Real Time Systems Symposium (Cat. No.89CH2803-5), P166, DOI 10.1109/REAL.1989.63567
[24]   ON THE COMPLEXITY OF FIXED-PRIORITY SCHEDULING OF PERIODIC, REAL-TIME TASKS [J].
LEUNG, JYT ;
WHITEHEAD, J .
PERFORMANCE EVALUATION, 1982, 2 (04) :237-250
[25]   SCHEDULING ALGORITHMS FOR MULTIPROGRAMMING IN A HARD-REAL-TIME ENVIRONMENT [J].
LIU, CL ;
LAYLAND, JW .
JOURNAL OF THE ACM, 1973, 20 (01) :46-61
[26]  
MASSALIN H, 1992, THESIS COLUMBIA U NE
[27]   CONCURRENT READING WHILE WRITING [J].
PETERSON, GL .
ACM TRANSACTIONS ON PROGRAMMING LANGUAGES AND SYSTEMS, 1983, 5 (01) :46-55
[28]  
RAJKUMAR R, 1991, SYNCHRONIZATION REAL
[29]  
Ramamurthy S., 1996, Proceedings of the Fifteenth Annual ACM Symposium on Principles of Distributed Computing, P233, DOI 10.1145/248052.248098
[30]   PRIORITY INHERITANCE PROTOCOLS - AN APPROACH TO REAL-TIME SYNCHRONIZATION [J].
SHA, L ;
RAJKUMAR, R ;
LEHOCZKY, JP .
IEEE TRANSACTIONS ON COMPUTERS, 1990, 39 (09) :1175-1185