Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- complete(proc_id):
- need = claim[proc_id] - alloc[proc_id]
- if need <= available:
- available += alloc[proc_id]
- alloc[proc_id] = None
- effetto_collaterale
- return true
- return false
- effetto_collaterale:
- for each proc_id in blocked
- need = claim[proc_id] - alloc[proc_id]
- if need <= available:
- release proc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement