Question: Recall the pseudo-code for generating reference traces. Write routines new wrkset, from_ wrkset, and not_ from_ wrkset to model the following types of programs: -
(a) a scientific program with a large working set during initialization, a small working set for the bulk of the computation, and a different working set to complete the computation. (You will need to modify the control code in the figure slightly to force phase transitions in desired places);
(b) a program whose working set always contains a core set of pages present in every phase, with the rest of the pages clustered elsewhere in the address space.