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

Another question on Engineering

question
Engineering, 04.07.2019 18:20
A3-mm-thick panel of aluminum alloy (k 177 w/m-k, c 875 j/kg-k and ? = 2770 kg/m) is finished on both sides with an epoxy coating that must be cured at or above t,-150°c for at least 5 min. the production line for the curing operation involves two steps: (1) heating in a large oven with air at ts,0-175°c and a convection coefficient of h, 40 w/m2. k, and (2) cooling in a large chamber with air at 25°c and a con- vection coefficient of he 10 w/m2.k. the heating portion of the process is conducted over a time interval te which exceeds the ime required to reach 150°c by 5 min (h = r + 300 s). the coating has an emissivity of ? = 0.8, and the temperatures of the oven and chamber walls are 175 and 25°c, respectively. if the panel is placed in the oven at an initial temperature of 25°c and removed from the chamber at a safe-to-touch tempera ture of 37°c, what is the total elapsed time for the two-step curing operation?
Answers: 3
question
Engineering, 04.07.2019 18:20
Describe one experiment in which the glass transition temperature and melting temperature of a totally amorphous thermoplastic material can be determined. show the relevant experimental results in a diagram which should be properly annotated with the two temperatures clearly marked. what is likely to happen to the curve in the diagram if the amorphous polymer is replaced by a thermosetting type?
Answers: 2
question
Engineering, 04.07.2019 18:20
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
question
Engineering, 04.07.2019 19:10
An external consultant recommends that a plant installs a bank of capacitors for power factor correction. this will reduce the peak electrical demand charges by an average of 93 kw every month. the plant current pays $13 per kw in peak demand charges. the capacitor bank will include 223 kw of fixed capacitors, and 183 of variable capacitors. the fixed capacitors cost $59 per kw, and the variable capacitors will cost $65 per kw. the consultant charges 21% of the equipment costs to install the capacitors. because this project will reduce the demand for the electric utility, they are prepared to provide a one-time rebate of $42 per kw of reduced demand. what is the simple payback period for this project (in years)?
Answers: 2
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
question
Mathematics, 10.09.2020 18:01
question
Mathematics, 10.09.2020 18:01
question
Mathematics, 10.09.2020 18:01
question
Mathematics, 10.09.2020 18:01
question
Mathematics, 10.09.2020 18:01
question
Mathematics, 10.09.2020 19:01
question
Mathematics, 10.09.2020 19:01
question
Mathematics, 10.09.2020 19:01
question
Mathematics, 10.09.2020 19:01
question
English, 10.09.2020 19:01
question
Mathematics, 10.09.2020 19:01
question
Geography, 10.09.2020 19:01
question
Mathematics, 10.09.2020 19:01
question
Mathematics, 10.09.2020 19:01
question
Biology, 10.09.2020 19:01
question
Mathematics, 10.09.2020 19:01
question
Mathematics, 10.09.2020 19:01
question
Mathematics, 10.09.2020 19:01
question
Mathematics, 10.09.2020 19:01
question
Mathematics, 10.09.2020 19:01
Questions on the website: 13722360