An improved Banker’s algorithm based on sorted resource buckets
Abstract
The Banker’s algorithm remains a fundamental deadlock-avoidance mechanism in operating system design, playing a crucial role in both theoretical computer science and practical resource management. However, its inherent computational inefficiency has limited its applicability in real-time systems. This study proposes a sorted resource buckets based approach combined with an optimized safety verification method, systematically reducing redundant computational cycles during state checks while preserving the algorithm’s correctness. The experimental evaluation adopts a comparative methodology, analyzing both random and worst-case resource request scenarios. Notably, the improved algorithm achieves up to a 113.5 times speedup for the “s-state” check execution and up to a 113.59 times overall speedup compared to the traditional Banker’s algorithm. These findings demonstrate that integrating sorted resource buckets with algorithmic optimizations can significantly enhance the efficiency of the Banker’s algorithm.
BibTeX
@misc{he2025improved,
author = {Xi He and Yucheng Lu and Aoyu Pang and Jia Chen},
title = {{An improved Banker’s algorithm based on sorted resource buckets}},
year = {2025},
doi = {10.1117/12.3070346},
}Ask Althea to put this paper to the test.
Loading related content...