Real-time computing with lock-free shared objects

This paper considers the use of lock-free shared objects within hard real-time systems. As the name suggests, lock-free shared objects are distinguished by the fact that they are not locked. 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 paper 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 paper, 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 object-sharing approaches can be expected to incur much less overhead than approaches based on wait-free objects or lock-based schemes. In the last part of the paper, this conclusion is validated experimentally through work involving a real time desktop videoconferencing system.

[1]  Joseph Y.-T. Leung,et al.  On the complexity of fixed-priority scheduling of periodic, real-time tasks , 1982, Perform. Evaluation.

[2]  Mark Moir,et al.  Lock-Free Transactions for Real-Time Systems , 1996, RTDB.

[3]  Lui Sha,et al.  Priority Inheritance Protocols: An Approach to Real-Time Synchronization , 1990, IEEE Trans. Computers.

[4]  Ambuj K. Singh,et al.  The elusive atomic register , 1994, JACM.

[5]  James H. Anderson,et al.  A framework for implementing objects and scheduling tasks in lock-free real-time systems , 1996, 17th IEEE Real-Time Systems Symposium.

[6]  Paul Gordon Sorenson,et al.  A methodology for real-time system development. , 1974 .

[7]  Kevin Jeffay,et al.  Scheduling sporadic tasks with shared resources in hard-real-time systems , 1992, [1992] Proceedings Real-Time Systems Symposium.

[8]  Charles U. Martel,et al.  On non-preemptive scheduling of period and sporadic tasks , 1991, [1991] Proceedings Twelfth Real-Time Systems Symposium.

[9]  B. O. Gallmeister,et al.  Early experience with POSIX 1003.4 and POSIX 1003.4 A , 1991, [1991] Proceedings Twelfth Real-Time Systems Symposium.

[10]  Donald L. Stone Managing the effect of delay jitter on the display of live continuous media , 1996 .

[11]  James H. Anderson,et al.  Implementing wait-free objects on priority-based systems , 1997, PODC '97.

[12]  Ragunathan Rajkumar,et al.  Synchronization in Real-Time Systems , 1991 .

[13]  Edward W. Felten,et al.  Performance issues in non-blocking synchronization on shared-memory multiprocessors , 1992, PODC '92.

[14]  Kevin Jeffay,et al.  Kernel Support for Live Digital Audio and Video , 1991, NOSSDAV.

[15]  Sanjoy K. Baruah,et al.  Feasibility Problems for Recurring Tasks on one Processor , 1993, Theor. Comput. Sci..

[16]  Leslie Lamport,et al.  Concurrent reading and writing , 1977, Commun. ACM.

[17]  Ragunathan Rajkumar,et al.  Synchronization in Real-Time Systems: A Priority Inheritance Approach , 1991 .

[18]  Henry Massalin,et al.  Synthesis: an efficient implementation of fundamental operating system services , 1992 .

[19]  Mark Moir,et al.  Universal constructions for multi-object operations , 1995, PODC '95.

[20]  Chung Laung Liu,et al.  Scheduling Algorithms for Multiprogramming in a Hard-Real-Time Environment , 1989, JACM.

[21]  Maurice Herlihy,et al.  Wait-free synchronization , 1991, TOPL.

[22]  Brian N. Bershad,et al.  Practical considerations for non-blocking concurrent objects , 1993, [1993] Proceedings. The 13th International Conference on Distributed Computing Systems.

[23]  Paul G. Sorenson,et al.  A Real-Time System Design Methodology* , 1975 .

[24]  James W. Layland,et al.  Scheduling Algorithms for Multiprogramming in a Hard-Real-Time Environment , 1989, JACM.

[25]  Gary L. Peterson,et al.  Concurrent Reading While Writing , 1983, TOPL.

[26]  H AndersonJames,et al.  Real-time computing with lock-free shared objects , 1997 .

[27]  Maurice Herlihy,et al.  A methodology for implementing highly concurrent data objects , 1993, TOPL.

[28]  John P. Lehoczky,et al.  The rate monotonic scheduling algorithm: exact characterization and average case behavior , 1989, [1989] Proceedings. Real-Time Systems Symposium.

[29]  Kevin Jeffay,et al.  Accounting for interrupt handling costs in dynamic priority task systems , 1993, 1993 Proceedings Real-Time Systems Symposium.

[30]  Hermann Kopetz,et al.  The non-blocking write protocol NBW: A solution to a real-time synchronization problem , 1993, 1993 Proceedings Real-Time Systems Symposium.

[31]  Jay K. Strosnider,et al.  Engineering and Analysis of Fixed Priority Schedulers , 1993, IEEE Trans. Software Eng..

[32]  K. Harathi,et al.  Interruptible Critical Sections , 1994 .

[33]  Kevin Jeffay,et al.  Kernel support for live digital audio and video , 1992, Comput. Commun..

[34]  Mark Moir,et al.  Universal Constructions for Large Objects , 1995, IEEE Trans. Parallel Distributed Syst..