subject
Computers and Technology, 19.08.2021 21:50 SMNS625

A uniprocessor sys accesses memory over a 3 write-back (as opposed to th data cache employing a write-allocate a data cache perates contains 65536 lines each through mode, uses true takes clock of which is bytes in size. Each data cache access perform a cycles to detect cache miss, or to perform a cache read or back to cache ding a memory block into cache a cache line item that takes 400 CPU clock cycles. Recall that for a cache the data item is needed is read in parallel with loading the memory block containing the after a into cache. The operating system flushes the of cache program terminates. The code shown below reads and updates each of the 134217728 four-byte elements in an integer array. The address of the array in memory is 0x100840A0. lui $8,0x1008 point to first element to be processed ori $8,0x40A0 loop:
lui $4,0x0800 number of elements 134217728 0x08000000)
lw $12,0 ($8) get next element
addi $4,$4,-1 decrement loop control variable
sub $12, $0,$12 negate by subtracting from o
addi $8,$8,4 point to next element
sw $12,-4($8) update element that was read
bgez $4, loop repeat if more elements remain nop
In an attempt to speedup the processing of the array, the code is executed on an 8-core system in which each core has a separate data cache identical to the data cache for the uniprocessor. A speedup factor of 8 for the 8-core system compared to the uniprocessor would correspond to what is called "linear" speedup.
What would be the actual speedup provided by the 8-core system based on just the time required to read and update the array elements, ignoring the time required by the instructions that do not reference memory? Each of the 8 cores executes a separate copy of the code but with the appropriate starting address and loop limit that would correspond to 1/8th of the array. Assume that all data caches are initially empty.

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 11:00, swelch2010
Describe three characteristics of at-risk drivers. a. b. c. describe three characteristics of safe drivers. a. b. c. describe three driver errors that could cause a collision. a. b. c. how will this information affect you as a driver now and in the future? (2-3 sentences)
Answers: 2
image
Computers and Technology, 23.06.2019 18:00, yedida
File account. java (see previous exercise) contains a definition for a simple bank account class with methods to withdraw, deposit, get the balance and account number, and return a string representation. note that the constructor for this class creates a random account number. save this class to your directory and study it to see how it works. then write the following additional code: 1. suppose the bank wants to keep track of how many accounts exist. a. declare a private static integer variable numaccounts to hold this value. like all instance and static variables, it will be initialized (to 0, since it’s an int) automatically. b. add code to the constructor to increment this variable every time an account is created. c. add a static method getnumaccounts that returns the total number of accounts. think about why this method should be static - its information is not related to any particular account. d. file testaccounts1.java contains a simple program that creates the specified number of bank accounts then uses the getnumaccounts method to find how many accounts were created. save it to your directory, then use it to test your modified account class.
Answers: 3
image
Computers and Technology, 23.06.2019 19:00, brittneyrenae7338
This question involves a class named textfile that represents a text file. public class textfile { private string filename; private string filename; private arraylist words; // constructors not shown // postcondition: returns the number of bytes in this file public int filesize() { } // precondition: 0 < = index < words. size() // postcondition: removes numwords words from the words arraylist beginning at // index. public void deletewords(int index, int numwords) { } // precondition: 0 < = index < = words. size() // postcondition: adds elements from newwords array to words arraylist beginning // at index. pub lic voidaddwords(int index, string[] newwords) { } // other methods not shown } complete the filesize() method. the filesize() is computed in bytes. in a text file, each character in each word counts as one byte. in addition, there is a space in between each word in the words arraylist, and each of those spaces also counts as one byte. for example, suppose the words arraylist stores the following words: { mary had a little lamb; its fleece was white as snow. } the filesize() method would compute 4 + 3 + 1 + 6 + 5 + 4 + 6 + 3 + 5 + 2 + 5 as the sum of the lengths of each string in the arraylist. the value returned would be this sum plus 10, because there would also be 10 spaces in between the 11 words. complete the filesize() method below: // postcondition: returns the number of bytes in this file public int filesize() { }
Answers: 1
image
Computers and Technology, 24.06.2019 11:00, maddiiie128
Why is it uncommon for users to perform searches directly in database tables? a.)users are discouraged from interacting directly with tables because they might confuse tables with spreadsheets. b.) users are discouraged from interacting directly with tables because this may result in unintended changes to source data. c.)users do not have the technical skills required to perform searches directly in database tables. d.)users do not have the permissions required to perform searches directly in database tables.
Answers: 1
You know the right answer?
A uniprocessor sys accesses memory over a 3 write-back (as opposed to th data cache employing a writ...

Questions in other subjects: