Advertisement
Guest User

Untitled

a guest
Dec 17th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. complete(proc_id):
  2. need = claim[proc_id] - alloc[proc_id]
  3. if need <= available:
  4. available += alloc[proc_id]
  5. alloc[proc_id] = None
  6. effetto_collaterale
  7. return true
  8. return false
  9.  
  10. effetto_collaterale:
  11. for each proc_id in blocked
  12. need = claim[proc_id] - alloc[proc_id]
  13. if need <= available:
  14. release proc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement