A coprocessor is added to a computer to speed the execution time of string?processing instructions by a factor of 3.5. What fraction of the execution time must these string?processing instructions use in order to achieve an average speedup of 1.5?
What will be an ideal response?
The new time to perform a task is f + (1 ? f)/3.5 where f is the fraction of time for which the speedup mechanism is not used. The speedup factor is the reciprocal of this value; that is, 1/( f + (1 ? f)/3.5) = 1.5 or 2 = 3(f + (1 ? f)/3.5). This gives f = 4/7.5 = 0.53. The string?processing hardware must be used for 53% of the time.
You might also like to view...
Document properties include such information as
A) file name, size on disk, and date created. B) margins, tabs, and font size. C) author, subject, and keywords. D) author, file name, and file size.
Which statements is false:
a. shared_ptrs provide the pointer operators dot(.), star(*) and arrow(->). b. We get the reference count using the shared_ptr member function use_count, which returns the number of shared_ptrs to the resource. c. Changes made to the resource of a shared_ptr are “seen” by all shared_ptrs to that resource. d. shared_ptr member function reset releases the current resource and sets the shared_ptr to NULL. If there are no other shared_ptrs to the resource, it’s destroyed.