subject
Engineering, 03.12.2019 19:31 Deascry

We will be using a cache simulator for this homework - we will go over the simulator in lab 12 on monday. for this homework we’re going to look at sort. cc, which is provided in the files on blackboard (or i261/cache). the program uses either exchange sort or quicksort to sort a list of 10,000 random numbers. the simple version of quicksort assumes that there are no repeated numbers in the list. the list is therefore initialized with the numbers 0 to , and is then scrambled by repeatedly swapping items. read through the source code and check that you understand what the program is doing. now instrument the sorting functions (add calls to inst r and inst w) to identify all references to list. you can also look at histogram. cc to see how the addresses for the data values were sent to the simulator. starting with exchange sort, run the code through the cache simulator (without the graphical interface) and experiment with different direct mapped caches: try cache sizes in the range 4 kbytes to 64 kbytes and block sizes in the range one to eight words. in each case, record the cache access statistics and attempt to understand the observed miss rates. note that exchange sorting a list of 10,000 items takes some time: you? ll probably want to interrupt each simulation (by pressing ctrl-c) after, say, 100,000 accesses, and record the statistics up to that point. next, edit sort. cc to enable quicksort in place of exchange sort, recompile and repeat the above experiments. submit a report showing the instrumented sort. cc code and detailing the results of your experiments (tables, graphs) for each cache size, block size, and sorting algorithm. you should be able to discuss the miss rates that you were seeing and comment on any trends that you are able to discern.

ansver
Answers: 2

Other questions on the subject: Engineering

image
Engineering, 03.07.2019 15:10, brooklyn674
Apiston-cylinder with a volume of 0.25 m3 holds 1 kg of air (r 0.287 k/kgk) at a temperature of 100 c. heat transfer to the cylinder causes an isothermal expansion of the piston until the volume triples. how much heat is added to the piston-cylinder?
Answers: 3
image
Engineering, 04.07.2019 18:10, heidiburgos1own6c0
Fluids at rest possess no flow energy. a)- true b)- false
Answers: 3
image
Engineering, 04.07.2019 18:20, esmemaluma00
Find the minimum film thickness for a journal bearing with the data below. shaft diameter, d-50 mm, clearance ratio, cdratio? 0.001, shaft speed, n 2000 rpm; bearing length. i 200 mm; eccentricity ration, ? -0.55. ( note, cdratio-ca/d) the minimum film thickness is um
Answers: 2
image
Engineering, 04.07.2019 18:20, rbgrh9465
An open feedwater heater operates at steady state with liquid entering at inlet 1 with t? = 40°c and pl = 1 .2 mpa. water vapor att2-200°c and p2 = 1.2 mpa enters at inlet 2. saturated liquid water exits with a pressure of pa 1.2 mpa. neglect heat transfer with the surroundings and all kinetic and potential energy effects, determine the mass flow rate of steam at inlet 2 if the mass flow rate of liquid water at inlet 1 is given as 2 kg/s.
Answers: 3
You know the right answer?
We will be using a cache simulator for this homework - we will go over the simulator in lab 12 on mo...

Questions in other subjects:

Konu
Social Studies, 28.10.2020 23:20