Gadara nets: Modeling and analyzing lock allocation for deadlock avoidance in multithreaded software | IEEE Conference Publication | IEEE Xplore