added an extract property to resources for processes
ession management
fix the algorithm for deadlock