Because of the way page tables work there is no need

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: times to determine the approximate number of clock ticks per second. Try compiling the program and running it on multiple systems. Try to find two different systems that produce results that differ by at least a factor of two. 9.9. SUMMARY Homework Problem 9.11 [Category 1]: 483 We can use the cycle counter to generate activity traces such as was shown in Figures 9.3 and 9.5. Use the functions start counter and get counter to write a function: #include "clock.h" int inactiveduration(int thresh); Returns: Number of inactive cycles This function continually checks the cycle counter and detects when two successive readings differ by more than thresh cycles, an indication that the process has been inactive. Return the duration (in clock cycles) of that inactive period. Homework Problem 9.12 [Category 1]: Suppose we call function mhz (Figure 9.10) with parameter sleeptime equal to 2. The system has a 10 ms timer interval. Assume that sleep is implemented as follows. The processor maintains...
View Full Document

This note was uploaded on 09/02/2010 for the course ELECTRICAL 360 taught by Professor Schultz during the Spring '10 term at BYU.

Ask a homework question - tutors are online