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 条
  • [1] Deadlock Detection of Multithreaded Programs Based on Lock-augmented Segmentation Graph
    Lu F.-M.
    Zheng J.-J.
    Bao Y.-X.
    Zeng Q.-T.
    Duan H.
    Wang X.-Y.
    Ruan Jian Xue Bao/Journal of Software, 2021, 32 (06): : 1682 - 1700
  • [2] ACon: A learning-based approach to deal with uncertainty in contextual requirements at runtime
    Knauss, Alessia
    Damian, Daniela
    Franch, Xavier
    Rook, Angela
    Mueller, Hausi A.
    Thomo, Alex
    INFORMATION AND SOFTWARE TECHNOLOGY, 2016, 70 : 85 - 99
  • [3] Deadlock Property Analysis of Concurrent Programs Based on Petri Net Structure
    Wei Liu
    Lu Wang
    Yuyue Du
    Maozhen Li
    International Journal of Parallel Programming, 2017, 45 : 879 - 898
  • [4] Deadlock Property Analysis of Concurrent Programs Based on Petri Net Structure
    Liu, Wei
    Wang, Lu
    Du, Yuyue
    Li, Maozhen
    INTERNATIONAL JOURNAL OF PARALLEL PROGRAMMING, 2017, 45 (04) : 879 - 898
  • [5] Improvement of a Learning-Based Tuning Approach for Trajectory Tracking Controller
    Liang, Zhihao
    Zhao, Kegang
    Zhang, Zheng
    Hao, Yuyuan
    Tang, Xiaolin
    IEEE TRANSACTIONS ON VEHICULAR TECHNOLOGY, 2025, 74 (03) : 4033 - 4047
  • [6] Marker-less tracking for AR: A learning-based approach
    Genc, Y
    Riedel, S
    Souvannavong, F
    Akinlar, C
    Navab, N
    INTERNATIONAL SYMPOSIUM ON MIXED AND AUGMENTED REALITY, PROCEEDINGS, 2002, : 295 - 304
  • [7] Concurrent Learning-Based Network Synchronization
    Klotz, J.
    Kamalapurkar, R.
    Dixon, W. E.
    2014 AMERICAN CONTROL CONFERENCE (ACC), 2014, : 796 - 801
  • [8] Characterizing Machine Learning-Based Runtime Prefetcher Selection
    Alcorta, Erika S.
    Madhav, Mahesh
    Afoakwa, Richard
    Tetrick, Scott
    Yadwadkar, Neeraja J.
    Gerstlauer, Andreas
    IEEE COMPUTER ARCHITECTURE LETTERS, 2024, 23 (02) : 146 - 149
  • [9] Learning-Based, Runtime Reachability Analysis of Microgrid Dynamics
    Fu, Xuguo
    Zhou, Yifan
    IEEE TRANSACTIONS ON POWER SYSTEMS, 2025, 40 (01) : 1152 - 1155
  • [10] Android-based Smartphone Malware Exploit Prevention Using a Machine Learning-based Runtime Detection System
    Vijay, Athul
    Portillo-Dominguez, A. Omar
    Ayala-Rivera, Vanessa
    2022 10TH INTERNATIONAL CONFERENCE IN SOFTWARE ENGINEERING RESEARCH AND INNOVATION, CONISOFT, 2022, : 131 - 139