Application of Dijkstra's weakest precondition calculus to Dining Philosophers problem

  • Authors:
  • Jayasri Banerjee;Anup Kumar Bandyopadhyay;Ajit Kumar Mandal

  • Affiliations:
  • Jadavpur University, Kolkata, India;Jadavpur University, Kolkata, India;Jadavpur University, Kolkata, India

  • Venue:
  • ACM SIGSOFT Software Engineering Notes
  • Year:
  • 2007

Quantified Score

Hi-index 0.00

Visualization

Abstract

Dijkstra's weakest precondition calculus is used to model the well known Dining Philosophers problem. Process and state definitions are done in such a manner that only the deadlock property of the system is highlighted. Care has been taken to choose the proper details such that it is not too elaborate to obscure the requirements also not be too abstract to mask the actual analytical needs. State transition rules specify the system behavior. Intuitive reasoning as well as formal technique has been applied to get the deadlock condition. Two well known solutions are specified and proved. The proof technique being analytical, its complexity does not depend on the size of the problem. The second solution requires an event ordering and therefore a temporal ordering predicate has been used to prove its correctness.