Analisis Banker’s Algorithm untuk Penghindaran Deadlock Berbasis Simulasi Kuantitatif Multiskenario
Abstract
Deadlock represents a critical threat in operating system resource management, as it has the potential to bring all computational processes to a complete halt. This study examines the effectiveness, efficiency, and constraints of the Banker's Algorithm as a deadlock avoidance mechanism through a multi-scenario quantitative simulation. The data were derived from simulations involving three core components: the resource allocation matrix (Allocation), the maximum process requirement declaration (Max), and the resource availability vector (Available), within a system configuration consisting of five processes and three resource types. The findings demonstrate that the Banker’s Algorithm accurately distinguishes between safe and unsafe states through its two primary mechanisms: the Safety Algorithm and the Resource-Request Algorithm. With Available set to [3, 3, 2], the algorithm successfully identified the safe execution sequence ⟨P1, P3, P4, P0, P2⟩, ensuring all processes could complete without deadlock risk. When Available was reduced to [2, 1, 0], the system entered an unsafe state in which no process could initiate execution. Through multi-scenario simulations, the critical transition threshold from a safe to an unsafe state was identified at approximately 83% resource utilization. In terms of efficiency, the O(n²×m) time complexity makes the algorithm well-suited for small to medium-scale systems, though it may become a performance bottleneck in large-scale cloud computing environments. This study produces a quantitative evaluation framework that can serve as a reference for implementing the Banker’s Algorithm in modern operating systems.
Downloads
References
Alsadie, D. (2024). Advancements in heuristic task scheduling for IoT applications in fog-cloud computing: Challenges and prospects. PeerJ Computer Science, 10, e2128. https://doi.org/10.7717/peerj-cs.2128
Bal, P. K., Mohapatra, S. K., Das, T. K., Srinivasan, K., & Hu, Y.-C. (2022). A Joint Resource Allocation, Security with Efficient Task Scheduling in Cloud Computing Using Hybrid Machine Learning Techniques. Sensors, 22(3), 1242. https://doi.org/10.3390/s22031242
Begum, M., Faruque, O., Miah, M. W. R., & Das, B. C. (2020). An Improved Safety Detection Algorithm Towards Deadlock Avoidance. 2020 IEEE 10th Symposium on Computer Applications & Industrial Electronics (ISCAIE), 73–78. https://doi.org/10.1109/ISCAIE47305.2020.9108818
Bondarenko, Y. V., & Azeez, A. E. (2021). Algorithm and Model for Improve the Avoiding of Deadlock with Increasing Efficiency of Resource Allocation in Cloud Environment. Journal of Physics: Conference Series, 1902(1), 012054. https://doi.org/10.1088/1742-6596/1902/1/012054
Botlagunta, M. D., Agrawal, S., & Rajeswara Rao, R. (2022). A novel resource management technique for deadlock-free systems. International Journal of Information Technology, 14(2), 627–635. https://doi.org/10.1007/s41870-021-00670-6
Coffman, E. G., Elphick, M., & Shoshani, A. (1971). System Deadlocks. ACM Computing Surveys, 3(2), 67–78. https://doi.org/10.1145/356586.356588
Creswell, J. W., & Creswell, J. D. (2017). Research design: Qualitative, quantitative, and mixed methods approaches. (5th ed.). SAGE Publications.
Cui, M., & Wang, Y. (2025). An effective QoS-aware hybrid optimization approach for workflow scheduling in cloud computing. Sensors, 25(15), 4705. https://doi.org/10.3390/s25154705
Jiang, L. (2019). Process Security Sequence Improvement Algorithm Based on Banker Algorithm. Journal of Physics: Conference Series, 1237(2), 022111. https://doi.org/10.1088/1742-6596/1237/2/022111
Kruekaew, B., & Kimpan, W. (2022). Multi-Objective Task Scheduling Optimization for Load Balancing in Cloud Computing Environment Using Hybrid Artificial Bee Colony Algorithm With Reinforcement Learning. IEEE Access, 10, 17803–17818. https://doi.org/10.1109/ACCESS.2022.3149955
Luo, J., Liu, Z., Wang, S., & Xing, K. (2020). Robust deadlock avoidance policy for automated manufacturing system with multiple unreliable resources. IEEE/CAA Journal of Automatica Sinica, 7(3), 812–821. https://doi.org/10.1109/JAS.2020.1003096
Mangalampalli, S., Karri, G. R., & Elngar, A. A. (2023). An Efficient Trust-Aware Task Scheduling Algorithm in Cloud Computing Using Firefly Optimization. Sensors, 23(3), 1384. https://doi.org/10.3390/s2331384
Mangalampalli, S., Karri, G. R., Kumar, M., Khalaf, O. I., Romero, C. A. T., & Sahib, G. A. (2024). DRLBTSA: Deep reinforcement learning based task-scheduling algorithm in cloud computing. Multimedia Tools and Applications, 83(3), 8359–8387. https://doi.org/10.1007/s11042-023-16008-2
Nayak, R. K., & Rao, G. S. (2025). Effective heuristic task scheduling algorithm for virtual machines in heterogeneous cloud computing. Multiagent and Grid Systems, 21(2), 168–186. https://doi.org/10.1177/15741702241301513
Nguyen Trong, T., Cuong, N. H. V., Pham, T. V., Cuong, N. H. H., & Khiet, B. T. (2023). An Approach to New Technical Solutions in Resource Allocation Based on Artificial Intelligence. In Information System Design: Communication Networks and IoT. Springer. https://doi.org/10.1007/978-3-031-35081-8_27
Rout, K. K., Mishra, D. P., & Salkuti, S. R. (2021). Deadlock detection in distributed system. Indonesian Journal of Electrical Engineering and Computer Science, 24(3), 1596–1603. https://doi.org/10.11591/ijeecs.v24.i3.pp1596-1603
Samha, A. K. (2023). Strategies for Efficient Resource Management in Federated Cloud Environments Supporting Infrastructure as a Service (IaaS). Journal of Engineering Research. https://doi.org/10.1016/j.jer.2023.10.031
Shu, W., Cai, K., & Xiong, N. N. (2021). Research on strong agile response task scheduling optimization enhancement with optimal resource usage in green cloud computing. Future Generation Computer Systems, 124, 12–20. https://doi.org/10.1016/j.future.2021.05.012
Silberschatz, A., Galvin, P. B., & Gagne, G. (2018). Operating System Concepts (10th ed.). John Wiley & Sons.
Song, D., Li, Y., & Song, T. (2021). Modified Banker’s algorithm with dynamically release resources. 2021 International Conference on Communications, Information System and Computer Engineering (CISCE), 566–569. https://doi.org/10.1109/CISCE52179.2021.9445935
Ugwuanyi, E. E., Iqbal, M., & Dagiuklas, T. (2023). A Comparative Analysis of Deadlock Avoidance and Prevention Algorithms for Resource Provisioning in Intelligent Autonomous Transport Systems Over 6G Infrastructure. IEEE Transactions on Intelligent Transportation Systems, 24(7), 7444–7461. https://doi.org/10.1109/TITS.2022.3169424
Wicaksono, H. R., Baeti, H. P. N., Salma, Y. P., & Kardian, A. R. (2023). Banker’s Algorithm Optimalization to Dynamically Avoid Deadlock in Operating System. JEEMECS (Journal of Electrical Engineering, Mechatronic and Computer Science), 6(1), 51–56. https://doi.org/10.26905/jeemecs.v6i1.8986
Zohora, M. F., Farhin, F., & Kaiser, M. S. (2024). DBDAA: A real-time approach to Dynamic Banker’s Deadlock Avoidance Algorithm with optimized time complexity. PLOS ONE, 19(9), e0310807. https://doi.org/10.1371/journal.pone.0310807
Bila bermanfaat silahkan share artikel ini
Berikan Komentar Anda terhadap artikel Analisis Banker’s Algorithm untuk Penghindaran Deadlock Berbasis Simulasi Kuantitatif Multiskenario
Copyright (c) 2026 Christian Bastanta Sembiring Meliala, Teti Desyani, Moch Ibba Ali Yassin, Aldiansyah Sastrawinata, Mikael Surya Saputra, Brian Aidil Rizkita, Rizki Arohman Maulana

This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under Creative Commons Attribution 4.0 International License that allows others to share the work with an acknowledgment of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgment of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (Refer to The Effect of Open Access).













