1. A method, comprising: constructing a lock acquisition hierarchy graph to facilitate monitoring of resource operations corresponding to each of a plurality of threads of a multithreaded program; monitoring the resource operations being performed in accordance with a hierarchy; and detecting a violation in the hierarchy, wherein the detecting of the violation is triggered with an occurrence of a change in the graph.