the decrease_count () function in the previous exercise currentl
the decrease_count () function in the previous exercise currently returns 0 if sufficient resources are available and -1 otherwise. this leads to awkward programming for a process that wishes to obtain a number of resources: while (decrease_count(count) == -1) ;rewrite the resource-manager code segment using a monitor and condition variables so that the decrease_count () function suspends the process until sufficient resources are available. this will allow a process to invoke decrease_count () by simply calling decrease_count(count); the process will return from this function call only when sufficient resources are available.
Price Type: Negotiable
Total Proposals: 2
1 Current viewersl
70 Total views