Banker's algorithm for deadlock avoidance | An example.