Runtime deadlock tracking and prevention of concurrent multithreaded programs: A learning-based approach

被引:2
|
作者
Ghorbani, Mehrdad [1 ]
Babamir, Seyed Morteza [1 ]
机构
[1] Univ Kashan, Dept Comp Engn, Kashan 8731751167, Iran
来源
关键词
adaptive systems; MLP; NARX; neural network; runtime deadlock prediction; time series; POTENTIAL DEADLOCKS;
D O I
10.1002/cpe.5324
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Allocation of shared resources by multithreaded programs faces problem of deadlock. Many solutions have been presented to resolve this problem. Among others, the deadlock prevention is stressed when the deadlock detection and removal are costly. Removing deadlocks, which is carried out by aborting/recovering deadlocked threads, causes the waste of the resources used by the deadlocked threads. In such case, deadlock prevention can lead to avoiding the waste of resources. To this end, the runtime behavior of threads should be monitored in order to predict possible future deadlocks. In such case, the prediction mechanism becomes significant because a proper prediction helps us deny the allocation request of a resource by a thread if the allocation leads to a potential deadlock. A method to attain to proper prediction is learning the behavior of threads based on runtime monitoring their past behavior. In fact, based on past behavior of threads, potential deadlocks in their future behavior are verified, and current allocation request of a resource is denied if a future deadlock is predicted. The current study is an extension of our previous work where just deadlock tracking was predicted and no adaptation was suggested. In this study, a composite structure of a recurrent Neural Network (NN) called NARX (to track a potential deadlock) and a Multi-perceptron NN called MLP (to select a suitable action to resolve the potential deadlock) is proposed. Based on the experimental results, the accuracy of the first NN was about 80%, leading to high performance of the second NN, and more than 82% of the real deadlocks were prevented by selecting suitable actions.
引用
收藏
页数:21
相关论文
共 50 条
  • [21] A Learning-Based Approach for Fast and Robust Vessel Tracking in Long Ultrasound Sequences
    De Luca, Valeria
    Tschannen, Michael
    Szekely, Gabor
    Tanner, Christine
    MEDICAL IMAGE COMPUTING AND COMPUTER-ASSISTED INTERVENTION (MICCAI 2013), PT I, 2013, 8149 : 518 - 525
  • [22] Reinforcement Learning-Based Approach to Robot Path Tracking in Nonlinear Dynamic Environments
    Chen, Wei
    Zhou, Zebin
    INTERNATIONAL JOURNAL OF HUMANOID ROBOTICS, 2024, 21 (04)
  • [23] Learning-based framework for industrial accident prevention: fuzzy cognitive mapping approach
    Boulagouas, Wafa
    Guelfen, Charaf Eddine
    Karoune, Abderraouf
    INTERNATIONAL JOURNAL OF QUALITY & RELIABILITY MANAGEMENT, 2024,
  • [24] Performance Evaluation of Lane Detection and Tracking Algorithm Based on Learning-Based Approach for Autonomous Vehicle
    Waykole, Swapnil
    Shiwakoti, Nirajan
    Stasinopoulos, Peter
    SUSTAINABILITY, 2022, 14 (19)
  • [25] Coverage-enhanced fault diagnosis for Deep Learning programs: A learning-based approach with hybrid metrics
    Qi, Xiaofang
    Zhu, Tiangang
    Li, Yanhui
    INFORMATION AND SOFTWARE TECHNOLOGY, 2024, 173
  • [26] ConLock: A Constraint-Based Approach to Dynamic Checking on Deadlocks in Multithreaded Programs
    Cai, Yan
    Wu, Shangru
    Chan, W. K.
    36TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING (ICSE 2014), 2014, : 491 - 502
  • [27] A robust learning-based detection and tracking algorithm
    Rahmah, Dini Nuzulia
    Cheng, Wen-Huang
    Chen, Yung-Yao
    Hua, Kai-Lung
    Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics), 2014, 8916 : 284 - 295
  • [28] Learning-based algorithms for vessel tracking: A review
    Jia, Dengqiang
    Zhuang, Xiahai
    COMPUTERIZED MEDICAL IMAGING AND GRAPHICS, 2021, 89
  • [29] Learning-Based Tracking Control of Soft Robots
    Zhang, Jingting
    Chen, Xiaotian
    Stegagno, Paolo
    Zhou, Mingxi
    Yuan, Chengzhi
    IEEE ROBOTICS AND AUTOMATION LETTERS, 2023, 8 (10) : 6155 - 6162
  • [30] Design of Adaptive Gravity Compensation Controller for Upper Limb Exosuit: The Concurrent Learning-based Approach
    Ghosh, Akriti
    Nath, Krishanu
    Bera, Manas Kumar
    Laskar, S. H.
    2022 EIGHTH INDIAN CONTROL CONFERENCE, ICC, 2022, : 272 - 277