In the readers and writers monitor presented in Fig. 6.3 why does it make sense to cascade in all waiting readers?
What will be an ideal response?
Any number of readers may read simultaneously without “getting in each other’s way.”
You might also like to view...
The purpose for array initialization is:
A. to provide default values so that data manipulation can proceed without null errors. B. used when you need to keep all values in the array the same through program execution. C. not needed as C++ automatically initializes values upon array creation. D. helpful when declaring the data type for the array.
A variable of type bool can be assigned the keyword or the key- word.
a) true, false b) off, on c) true, notTrue d) yes, no
An alternative to the pass by value function call in which the called function receives a copy of a structure is a(n) ____ function.
A. pointer reference B. pass by reference C. global reference D. array reference
What command would you use to verify that the OSPF routes you expect are in the routing table?
A) show ip route ospf B) show route C) show ip route dynamic D) show ip route dynamic ospf