Which statements about software delays and timer based delays are true? Group of answer choices There is no big difference between software delays and timers Energy consumption may be reduced by using timer based delays instead of software delays Timer based delays consume more CPU cycles than software delays Energy consumption can be reduced by using software delays instead of timer based delays
Added by Lisa M.
Step 1
- Software delays typically involve a loop that wastes CPU cycles until a certain amount of time has passed. - Timer based delays use hardware timers to schedule events at specific times, allowing the CPU to perform other tasks during the delay. Show more…
Show all steps
Your feedback will help us improve your experience
Patha Sharma and 71 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
Another pitfall cited in Section 1.10 is expecting to improve the overall performance of a computer by improving only one aspect of the computer. This might be true, but not always. Consider a computer running programs with CPU times shown in the following table: | | FP Instr. | INT Instr. | L/S Instr. | Branch Instr. | Total Time | |---|---|---|---|---|---| | a. | 70 s | 85 s | 55s | 40s | 250s | | b. | 40 s | 90s | 60s | 20s | 210s | 1) How much is the total time reduced if the time for FP operations is reduced by 20%. 2) How much is the time for INT operations reduced if the total time is reduced by 20%. 3) Can the total time be reduced by 20% by reducing only the time for branch instructions?
Patha S.
Sri K.
Program A Program B Instruction mix Instructions of Type 1: 40% Instructions of Type 2: 60% Instructions of Type 1: 50% Instructions of Type 2: 50% Dynamic instruction count 8 * 10^9 instructions 10 * 10^9 instructions Computer C1 Computer C2 Cycles per instruction Instructions of Type 1: 2 cycles Instructions of Type 2: 3 cycles Instructions of Type 1: 2 cycles Instructions of Type 2: 2 cycles Frequency 4.0 GHz 3.0 GHz
Akash M.
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
Transcript
Watch the video solution with this free unlock.
EMAIL
PASSWORD