<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.3 20210610//EN" "JATS-journalpublishing1-3.dtd">
<article article-type="research-article" dtd-version="1.3" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xml:lang="ru"><front><journal-meta><journal-id journal-id-type="publisher-id">mais</journal-id><journal-title-group><journal-title xml:lang="ru">Моделирование и анализ информационных систем</journal-title><trans-title-group xml:lang="en"><trans-title>Modeling and Analysis of Information Systems</trans-title></trans-title-group></journal-title-group><issn pub-type="ppub">1818-1015</issn><issn pub-type="epub">2313-5417</issn><publisher><publisher-name>Yaroslavl State University</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.18255/1818-1015-2024-4-474-494</article-id><article-id custom-type="elpub" pub-id-type="custom">mais-1899</article-id><article-categories><subj-group subj-group-type="heading"><subject>Research Article</subject></subj-group><subj-group subj-group-type="section-heading" xml:lang="ru"><subject>Theory of Computing</subject></subj-group></article-categories><title-group><article-title>Точный тест планируемости для систем реального времени с абстрактным планировщиком на мультипроцессорных платформах</article-title><trans-title-group xml:lang="en"><trans-title>An Exact Schedulability Test for Real-Time Systems with Abstract Scheduler on Multiprocessor Platforms</trans-title></trans-title-group></title-group><contrib-group><contrib contrib-type="author" corresp="yes"><contrib-id contrib-id-type="orcid">https://orcid.org/0000-0001-9734-3808</contrib-id><name-alternatives><name name-style="eastern" xml:lang="ru"><surname>Гаранина</surname><given-names>Наталья Олеговна</given-names></name><name name-style="western" xml:lang="en"><surname>Garanina</surname><given-names>Natalia O.</given-names></name></name-alternatives><email xlink:type="simple">garanina@iis.nsk.su</email><xref ref-type="aff" rid="aff-1"/></contrib></contrib-group><aff-alternatives id="aff-1"><aff xml:lang="ru"><institution>Институт автоматики и электрометрии СО РАН</institution><country>Россия</country></aff><aff xml:lang="en"><institution>Institute of Automation and Electrometry SB RAS</institution><country>Russian Federation</country></aff></aff-alternatives><pub-date pub-type="collection"><year>2024</year></pub-date><pub-date pub-type="epub"><day>13</day><month>12</month><year>2024</year></pub-date><volume>31</volume><issue>4</issue><fpage>474</fpage><lpage>494</lpage><permissions><copyright-statement>Copyright &amp;#x00A9; Гаранина Н.О., 2024</copyright-statement><copyright-year>2024</copyright-year><copyright-holder xml:lang="ru">Гаранина Н.О.</copyright-holder><copyright-holder xml:lang="en">Garanina N.O.</copyright-holder><license xml:lang="ru" license-type="creative-commons-attribution" xlink:href="https://creativecommons.org/licenses/by/4.0/" xlink:type="simple"><license-p>Данная работа распространяется под лицензией Creative Commons Attribution 4.0.</license-p></license><license xml:lang="en" license-type="creative-commons-attribution" xlink:href="https://creativecommons.org/licenses/by/4.0/" xlink:type="simple"><license-p>This work is licensed under a Creative Commons Attribution 4.0 License.</license-p></license></permissions><self-uri xlink:href="https://www.mais-journal.ru/jour/article/view/1899">https://www.mais-journal.ru/jour/article/view/1899</self-uri><abstract><p>Эта статья посвящена использованию метода верификации моделей для точного теста планируемости систем реального времени, выполняющихся на мультипроцессорных платформах. Чтобы использовать этот метод, мы формально описываем системы реального времени с абстрактным планировщиком, используя модели Крипке. Эта формализация содержит термины, достаточные для специализации абстрактного планировщика. Мы иллюстрируем наш подход, явно определяя планировщики, которые учитывают вытеснение/невытеснение задач и глобальный фиксированный приоритет или приоритет ближайшего дедлайна в различных сочетаниях. Свойство безопасности (планируемости) систем реального времени сформулировано с помощью линейной темпоральной логики LTL. Формализация систем реального времени как моделей Крипке и задание свойства безопасности (планируемости) как формулы LTL позволяет свести точный тест планируемости таких систем к задаче верификации моделей. Мы апробируем этот подход к точному тесту планируемости, реализуя на Promela — входном языке инструмента верификации моделей SPIN — нашу формализацию систем реального времени с невытесняющим планировщиком с глобальным фиксированным приоритетом (NP-GFP), вытесняющим планировщиком с глобальным фиксированным приоритетом (P-GFP), невытесняющим планировщиком с приоритетом ближайшего дедлайна (NP-EDF) и вытесняющим планировщиком с приоритетом ближайшего дедлайна (P-EDF). Мы проводим эксперименты в SPIN для доказательства/опровержения свойства безопасности (планируемости), чтобы оценить эффективность нашего подхода. Мы предлагаем эвристическую оценку планируемости системы реального времени на основе доказуемости небезопасности и недоказуемости безопасности системы реального времени при выполнении на мультипроцессорных платформах с числом процессоров, отличающимся на единицу.</p></abstract><trans-abstract xml:lang="en"><p>This paper uses the model checking method for an exact schedulability test of real-time systems running on multiprocessor platforms. To use this method, we formally describe real-time systems with an abstract scheduler as Kripke models. This formalization provides terms sufficient to specialize the abstract scheduler. We illustrate our approach by explicitly defining schedulers that take into account preemption/non-preemption of tasks and global fixed or earliest-deadline-first priority in various combinations. The safety (schedulability) property of real-time systems is formulated using linear temporal logic LTL. Formalizing real-time systems as Kripke models and specifying the safety (schedulability) property as an LTL formula allows us to reduce the exact schedulability test of such systems to a model checking problem. We validate this approach to an exact schedulability test by implementing our formalization of real-time systems with non-preemptive global fixed-priority (NP-GFP), preemptive global fixed-priority (P-GFP), non-preemptive earliest-deadline-first priority (NP-EDF), and preemptive earliest-deadline-first priority (P-EDF) schedulers in Promela, the input language of the model checking tool SPIN. We conduct experiments in SPIN to prove/disprove the safety (schedulability) property to evaluate the effectiveness of our approach. We propose a heuristic assessment of the schedulability of a real-time system based on the provability of unsafety and unprovability of safety of a real-time system executed on multiprocessor platforms with the number of processors differing by one.</p></trans-abstract><kwd-group xml:lang="ru"><kwd>системы реального времени</kwd><kwd>точный тест на планируемость</kwd><kwd>модели Крипке</kwd><kwd>проверка моделей</kwd><kwd>Promela</kwd><kwd>SPIN</kwd></kwd-group><kwd-group xml:lang="en"><kwd>real-time systems</kwd><kwd>exact schedulability test</kwd><kwd>Kripke models</kwd><kwd>model checking</kwd><kwd>Promela</kwd><kwd>SPIN</kwd></kwd-group></article-meta></front><back><ref-list><title>References</title><ref id="cit1"><label>1</label><citation-alternatives><mixed-citation xml:lang="ru">J. W. S. Liu, Real-time systems. Prentice-Hall, 2001.</mixed-citation><mixed-citation xml:lang="en">J. W. S. Liu, Real-time systems. Prentice-Hall, 2001.</mixed-citation></citation-alternatives></ref><ref id="cit2"><label>2</label><citation-alternatives><mixed-citation xml:lang="ru">B. B. Brandenburg and M. Gül, “Global Scheduling Not Required: Simple, Near-Optimal Multiprocessor Real-Time Scheduling with Semi-Partitioned Reservations,” in Proceedings of the IEEE Real-Time Systems Symposium (RTSS), 2016, pp. 99–110, doi: 10.1109/RTSS.2016.019.</mixed-citation><mixed-citation xml:lang="en">B. B. Brandenburg and M. Gül, “Global Scheduling Not Required: Simple, Near-Optimal Multiprocessor Real-Time Scheduling with Semi-Partitioned Reservations,” in Proceedings of the IEEE Real-Time Systems Symposium (RTSS), 2016, pp. 99–110, doi: 10.1109/RTSS.2016.019.</mixed-citation></citation-alternatives></ref><ref id="cit3"><label>3</label><citation-alternatives><mixed-citation xml:lang="ru">Q. Zhou, G. Li, C. Zhou, and J. Li, “Limited Busy Periods in Response Time Analysis for Tasks Under Global EDF Scheduling,” IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems, vol. 40, no. 2, pp. 232–245, 2021, doi: 10.1109/TCAD.2020.2994265.</mixed-citation><mixed-citation xml:lang="en">Q. Zhou, G. Li, C. Zhou, and J. Li, “Limited Busy Periods in Response Time Analysis for Tasks Under Global EDF Scheduling,” IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems, vol. 40, no. 2, pp. 232–245, 2021, doi: 10.1109/TCAD.2020.2994265.</mixed-citation></citation-alternatives></ref><ref id="cit4"><label>4</label><citation-alternatives><mixed-citation xml:lang="ru">A. Burmyakov, E. Bini, and E. Tovar, “An exact schedulability test for global FP using state space pruning,” in Proceedings of the 23rd International Conference on Real Time and Networks Systems, 2015, pp. 225–234, doi: 10.1145/2834848.2834877.</mixed-citation><mixed-citation xml:lang="en">A. Burmyakov, E. Bini, and E. Tovar, “An exact schedulability test for global FP using state space pruning,” in Proceedings of the 23rd International Conference on Real Time and Networks Systems, 2015, pp. 225–234, doi: 10.1145/2834848.2834877.</mixed-citation></citation-alternatives></ref><ref id="cit5"><label>5</label><citation-alternatives><mixed-citation xml:lang="ru">A. Burmyakov, E. Bini, and C.-G. Lee, “Towards a Tractable Exact Test for Global Multiprocessor Fixed Priority Scheduling,” IEEE Transactions on Computers, vol. 71, no. 11, pp. 2955–2967, 2022, doi: 10.1109/TC.2022.3142540.</mixed-citation><mixed-citation xml:lang="en">A. Burmyakov, E. Bini, and C.-G. Lee, “Towards a Tractable Exact Test for Global Multiprocessor Fixed Priority Scheduling,” IEEE Transactions on Computers, vol. 71, no. 11, pp. 2955–2967, 2022, doi: 10.1109/TC.2022.3142540.</mixed-citation></citation-alternatives></ref><ref id="cit6"><label>6</label><citation-alternatives><mixed-citation xml:lang="ru">S. Ranjha, P. Gohari, G. Nelissen, and M. Nasri, “Partial-order reduction in reachability-based response-time analyses of limited-preemptive DAG tasks,” Real-Time Systems, vol. 59, no. 2, pp. 201–255, 2023, doi: 10.1007/s11241-023-09398-x.</mixed-citation><mixed-citation xml:lang="en">S. Ranjha, P. Gohari, G. Nelissen, and M. Nasri, “Partial-order reduction in reachability-based response-time analyses of limited-preemptive DAG tasks,” Real-Time Systems, vol. 59, no. 2, pp. 201–255, 2023, doi: 10.1007/s11241-023-09398-x.</mixed-citation></citation-alternatives></ref><ref id="cit7"><label>7</label><citation-alternatives><mixed-citation xml:lang="ru">P. Gohari, J. Voeten, and M. Nasri, “Reachability-Based Response-Time Analysis of Preemptive Tasks Under Global Scheduling,” in Proceedings of the 36th Euromicro Conference on Real-Time Systems (ECRTS 2024), 2024, pp. 3:1–3:24, doi: 10.4230/LIPIcs.ECRTS.2024.3.</mixed-citation><mixed-citation xml:lang="en">P. Gohari, J. Voeten, and M. Nasri, “Reachability-Based Response-Time Analysis of Preemptive Tasks Under Global Scheduling,” in Proceedings of the 36th Euromicro Conference on Real-Time Systems (ECRTS 2024), 2024, pp. 3:1–3:24, doi: 10.4230/LIPIcs.ECRTS.2024.3.</mixed-citation></citation-alternatives></ref><ref id="cit8"><label>8</label><citation-alternatives><mixed-citation xml:lang="ru">Y. Sun and G. Lipari, “A pre-order relation for exact schedulability test of sporadic tasks on multiprocessor Global Fixed-Priority scheduling,” Real-Time Systems, vol. 52, no. 3, pp. 323–355, 2016, doi: 10.1007/s11241-015-9245-9.</mixed-citation><mixed-citation xml:lang="en">Y. Sun and G. Lipari, “A pre-order relation for exact schedulability test of sporadic tasks on multiprocessor Global Fixed-Priority scheduling,” Real-Time Systems, vol. 52, no. 3, pp. 323–355, 2016, doi: 10.1007/s11241-015-9245-9.</mixed-citation></citation-alternatives></ref><ref id="cit9"><label>9</label><citation-alternatives><mixed-citation xml:lang="ru">A. M. K. Cheng, Real‐Time Systems: Scheduling, Analysis, and Verification. John Wiley &amp; Sons, 2002.</mixed-citation><mixed-citation xml:lang="en">A. M. K. Cheng, Real‐Time Systems: Scheduling, Analysis, and Verification. John Wiley &amp; Sons, 2002.</mixed-citation></citation-alternatives></ref><ref id="cit10"><label>10</label><citation-alternatives><mixed-citation xml:lang="ru">E. M. Clarke, T. A. Henzinger, H. Veith, R. Bloem, and others, Handbook of model checking, vol. 10. Springer, 2018.</mixed-citation><mixed-citation xml:lang="en">E. M. Clarke, T. A. Henzinger, H. Veith, R. Bloem, and others, Handbook of model checking, vol. 10. Springer, 2018.</mixed-citation></citation-alternatives></ref><ref id="cit11"><label>11</label><citation-alternatives><mixed-citation xml:lang="ru">G. J. Holzmann, The SPIN Model Checker, Primer and Reference Manual. Addison-Wesley, Reading, Massachusetts, 2003.</mixed-citation><mixed-citation xml:lang="en">G. J. Holzmann, The SPIN Model Checker, Primer and Reference Manual. Addison-Wesley, Reading, Massachusetts, 2003.</mixed-citation></citation-alternatives></ref><ref id="cit12"><label>12</label><citation-alternatives><mixed-citation xml:lang="ru">R. Cavada et al., “The nuXmv Symbolic Model Checker,” in Computer Aided Verification, 2014, pp. 334–342, doi: 10.1007/978-3-319-08867-9_22.</mixed-citation><mixed-citation xml:lang="en">R. Cavada et al., “The nuXmv Symbolic Model Checker,” in Computer Aided Verification, 2014, pp. 334–342, doi: 10.1007/978-3-319-08867-9_22.</mixed-citation></citation-alternatives></ref><ref id="cit13"><label>13</label><citation-alternatives><mixed-citation xml:lang="ru">N. Guan, Z. Gu, Q. Deng, S. Gao, and G. Yu, “Exact Schedulability Analysis for Static-Priority Global Multiprocessor Scheduling Using Model-Checking,” in Software Technologies for Embedded and Ubiquitous Systems, 2007, pp. 263–272.</mixed-citation><mixed-citation xml:lang="en">N. Guan, Z. Gu, Q. Deng, S. Gao, and G. Yu, “Exact Schedulability Analysis for Static-Priority Global Multiprocessor Scheduling Using Model-Checking,” in Software Technologies for Embedded and Ubiquitous Systems, 2007, pp. 263–272.</mixed-citation></citation-alternatives></ref><ref id="cit14"><label>14</label><citation-alternatives><mixed-citation xml:lang="ru">B. Yalcinkaya, M. Nasri, and B. B. Brandenburg, “An Exact Schedulability Test for Non-Preemptive Self-Suspending Real-Time Tasks,” in Proceedings of the Design, Automation &amp; Test in Europe Conference &amp; Exhibition (DATE), 2019, pp. 1228–1233, doi: 10.23919/DATE.2019.8715111.</mixed-citation><mixed-citation xml:lang="en">B. Yalcinkaya, M. Nasri, and B. B. Brandenburg, “An Exact Schedulability Test for Non-Preemptive Self-Suspending Real-Time Tasks,” in Proceedings of the Design, Automation &amp; Test in Europe Conference &amp; Exhibition (DATE), 2019, pp. 1228–1233, doi: 10.23919/DATE.2019.8715111.</mixed-citation></citation-alternatives></ref><ref id="cit15"><label>15</label><citation-alternatives><mixed-citation xml:lang="ru">S. M. Staroletov, “A Formal Model of a Partitioned Real-Time Operating System in Promela,” Proceedings of the Institute for System Programming of the RAS, vol. 32, no. 6, pp. 49–65, 2020.</mixed-citation><mixed-citation xml:lang="en">S. M. Staroletov, “A Formal Model of a Partitioned Real-Time Operating System in Promela,” Proceedings of the Institute for System Programming of the RAS, vol. 32, no. 6, pp. 49–65, 2020.</mixed-citation></citation-alternatives></ref><ref id="cit16"><label>16</label><citation-alternatives><mixed-citation xml:lang="ru">Sukvanich, Punwess, Thongtak, Arthit, and Vatanawood, Wiwat, “Formalizing Real-Time Embedded System into Promela,” MATEC Web of Conferences, vol. 35, p. 03003, 2015, doi: 10.1051/matecconf/20153503003.</mixed-citation><mixed-citation xml:lang="en">Sukvanich, Punwess, Thongtak, Arthit, and Vatanawood, Wiwat, “Formalizing Real-Time Embedded System into Promela,” MATEC Web of Conferences, vol. 35, p. 03003, 2015, doi: 10.1051/matecconf/20153503003.</mixed-citation></citation-alternatives></ref><ref id="cit17"><label>17</label><citation-alternatives><mixed-citation xml:lang="ru">G. Geeraerts, J. Goossens, and T.-V.-A. Nguyen, “A Backward Algorithm for the Multiprocessor Online Feasibility of Sporadic Tasks,” in Proceedings of the 17th International Conference on Application of Concurrency to System Design (ACSD), 2017, pp. 116–125, doi: 10.1109/ACSD.2017.9.</mixed-citation><mixed-citation xml:lang="en">G. Geeraerts, J. Goossens, and T.-V.-A. Nguyen, “A Backward Algorithm for the Multiprocessor Online Feasibility of Sporadic Tasks,” in Proceedings of the 17th International Conference on Application of Concurrency to System Design (ACSD), 2017, pp. 116–125, doi: 10.1109/ACSD.2017.9.</mixed-citation></citation-alternatives></ref><ref id="cit18"><label>18</label><citation-alternatives><mixed-citation xml:lang="ru">E. M. Clarke, E. A. Emerson, and A. P. Sistla, “Automatic verification of finite-state concurrent systems using temporal logic specifications,” ACM Transactions on Programming Languages and Systems (TOPLAS), vol. 8, no. 2, pp. 244–263, 1986.</mixed-citation><mixed-citation xml:lang="en">E. M. Clarke, E. A. Emerson, and A. P. Sistla, “Automatic verification of finite-state concurrent systems using temporal logic specifications,” ACM Transactions on Programming Languages and Systems (TOPLAS), vol. 8, no. 2, pp. 244–263, 1986.</mixed-citation></citation-alternatives></ref><ref id="cit19"><label>19</label><citation-alternatives><mixed-citation xml:lang="ru">V. Bonifaci and A. Marchetti-Spaccamela, “Feasibility Analysis of Sporadic Real-Time Multiprocessor Task Systems,” Algorithmica, vol. 63, pp. 763–780, 2010.</mixed-citation><mixed-citation xml:lang="en">V. Bonifaci and A. Marchetti-Spaccamela, “Feasibility Analysis of Sporadic Real-Time Multiprocessor Task Systems,” Algorithmica, vol. 63, pp. 763–780, 2010.</mixed-citation></citation-alternatives></ref><ref id="cit20"><label>20</label><citation-alternatives><mixed-citation xml:lang="ru">C. A. R. Hoare, “Communicating sequential processes,” Communications of the ACM, vol. 21, no. 8, pp. 666–677, 1978.</mixed-citation><mixed-citation xml:lang="en">C. A. R. Hoare, “Communicating sequential processes,” Communications of the ACM, vol. 21, no. 8, pp. 666–677, 1978.</mixed-citation></citation-alternatives></ref><ref id="cit21"><label>21</label><citation-alternatives><mixed-citation xml:lang="ru">N. O. Garanina, “An Exact Schedulability Test for Real-time Systems with an Abstract Scheduler,” System Informatics, vol. 25, pp. 29–38, 2024, doi: 10.31144/si.2307-6410.2024.n25.p29-38.</mixed-citation><mixed-citation xml:lang="en">N. O. Garanina, “An Exact Schedulability Test for Real-time Systems with an Abstract Scheduler,” System Informatics, vol. 25, pp. 29–38, 2024, doi: 10.31144/si.2307-6410.2024.n25.p29-38.</mixed-citation></citation-alternatives></ref></ref-list><fn-group><fn fn-type="conflict"><p>The authors declare that there are no conflicts of interest present.</p></fn></fn-group></back></article>
