• DocumentCode
    3159676
  • Title

    On Spin Locks in AUTOSAR: Blocking Analysis of FIFO, Unordered, and Priority-Ordered Spin Locks

  • Author

    Wieder, Alexander ; Brandenburg, Bjorn B.

  • fYear
    2013
  • fDate
    3-6 Dec. 2013
  • Firstpage
    45
  • Lastpage
    56
  • 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;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Real-Time Systems Symposium (RTSS), 2013 IEEE 34th
  • Conference_Location
    Vancouver, BC
  • ISSN
    1052-8725
  • Type

    conf

  • DOI
    10.1109/RTSS.2013.13
  • Filename
    6728860