Question: Exercises 255 #define MAX.PROCESSES 255 int number-of-processes 0; s function */ int allocate-process) int new-pid; if (number of processes MAX PROCESSES) return -1; else 1
Exercises 255 #define MAX.PROCESSES 255 int number-of-processes 0; s function */ int allocate-process) int new-pid; if (number of processes MAX PROCESSES) return -1; else 1 /* allocate necessary process resources * ++number.of processes; return new pid; /* the implementation of exit) calls this function / void release-process) /* release process resources/ --number of-processes; Figure 5.27 Allocating and releasing processes
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
