Deadlock immunity: enabling systems to defend against deadlocks

Horatiu Jula, Daniel M. Tralamazza, Cristian Zamfir, George Candea · Infoscience (Ecole Polytechnique Fédérale de Lausanne) · 2008

Deadlock immunity is a property by which programs, once afflicted by a given deadlock, develop resistance against future occurrences of that and similar deadlocks. We describe a technique that enables programs to auto-matically gain such immunity without assistance from programmers or users. We implemented the technique for both Java and POSIX threads and evaluated it with several real systems, including MySQL, JBoss, SQLite, Apache ActiveMQ, Limewire, and Java JDK. The results demonstrate effectiveness against real deadlock bugs, while incurring modest performance overhead and scal-ing to 1024 threads. We therefore conclude that deadlock immunity offers programmers and users an attractive tool for coping with elusive deadlocks. 1

Read the paper · More papers on PaperTik