Assume that the operating system has receive a set of ‘’n’’ processes, assume also there are ‘’m’’ resources available. Write a program which will detect
a) A safe state
b) Unsafe state without a deadlock
c) Unsafe state with a deadlock
Assume that both ‘’m’’ and ‘’n’’ are integers and any number can be assigned
NB; Use c++ language
Comments
Leave a comment