Title :
On Spin Locks in AUTOSAR: Blocking Analysis of FIFO, Unordered, and Priority-Ordered Spin Locks
Author :
Wieder, Alexander ; Brandenburg, Bjorn B.
Abstract :
Motivated by the widespread use of spin locks in embedded multiprocessor real-time systems, the worst-case blocking in spin locks is analyzed using mixed-integer linear programming. Four queue orders and two preemption models are studied: (i) FIFO-ordered spin locks, (ii) unordered spin locks, (iii) priority-ordered spin locks with unordered tie-breaking, and (iv) priority-ordered spin locks with FIFO-ordered tie-breaking, each analyzed assuming both preempt able and non-preempt able spinning. Of the eight lock types, seven have not been analyzed in prior work. Concerning the sole exception (non-preempt able FIFO spin locks), the new analysis is asymptotically less pessimistic and typically much more accurate since no critical section is accounted for more than once. The eight lock types are empirically compared in schedulability experiments. While the presented analysis is generic in nature and applicable to real-time systems in general, it is specifically motivated by the recent inclusion of spin locks into the AUTOSAR standard, and four concrete suggestions for an improved AUTOSAR spin lock API are derived from the results.
Keywords :
integer programming; linear programming; multiprocessing systems; AUTOSAR; FIFO blocking analysis; FIFO-ordered spin locks; FIFO-ordered tie-breaking; embedded multiprocessor realtime systems; first-in first-out; mixed-integer linear programming; nonpreempt able spinning; preempt able spinning; preemption models; priority-ordered spin locks; queue orders; spin locks; unordered spin locks; unordered tie-breaking; worst-case blocking; Algorithm design and analysis; Delays; Processor scheduling; Program processors; Protocols; Real-time systems; Spinning; AUTOSAR; integer linear programming; multiprocessor real-time systems; spin locks; worst-case blocking;
Conference_Titel :
Real-Time Systems Symposium (RTSS), 2013 IEEE 34th
Conference_Location :
Vancouver, BC
DOI :
10.1109/RTSS.2013.13