Real-time computing with lock-free shared objects

This article 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 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.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[22]  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.

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

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

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

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

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

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

[29]  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.

[30]  Mark Moir,et al.  Real-time object sharing with minimal system support , 1996, PODC '96.

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

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