02 May QuestionParallel Programming1) You have been assigned th
Question
Parallel Programming
1) You have been assigned the task of computing the sum of 1,000 four-digit numbers as rapidly as possible. You hold in your hands a stack of 1,000 index cards, each containing a single number, and you are in charge of 1,000 expert accountants, each with a calculator. You may choose to use the services of any number of accountants. The accountants are sitting at desks in a cavernous room. The desks are organized in to 25 rows and 40 columns. Each accountant is able to pass cards to the four accountants nearest him – in front, in back, to his left, and to his right.
a. Describe a fast method of distributing cards to accounts.
b. Describe a fast method of accumulating subtotals generated by active accountants into a grand total.
c. Explain why 1,000 accountants cannot perform the task 1,000 times faster than on accountant.
d. Find another way to arrange the desks of the accountants to reduce the time needed to distribute cards and collect subtotals. Describe the new desk arrangement, the new communication pattern, and the new estimate for time spent distributing cards and accumulating subtotals.
2) A copy machine’s feeder tray holds pages to be copied. Assume that it takes 5 second to load a new group of pages in the feeder before copying and 10 seconds to unload the original and the copies after copying. If the copier takes 4 seconds to print the first page of a group and 1 second to print every subsequent page, what is the minimum capacity of the feeder tray necessary to ensure that the effective throughput of the copier asymptotically approaches 40 pages per minute as the length of the original document increases?
3) Explain how a queue, implemented in hardware in the CPU, could be used to improve the performance of a write-through cache.
4) Assume that the main memory of a small computer is composed of 1 Megabytes, which are mapped into a 4-kilobyte cache. The cache is 4 way set associative. Blocks in main memory and block frames in the cache contain 32 bytes each.
a) Draw a diagram showing the organization of the cache indicating how physical addresses are related to the cache addresses.
b) To what block in main memory does the address 25320 belong to?
c) What memory addresses does the block 6234 contain in main memory?
d) To which set in the cache memory does the block 6234 map to?
5) Assume a hypercube of 256 nodes in the following questions:
a) What is he maximum number of hops required to reach the farthest node in the system?
b) How many neighbors does each node have?
c) Identify all the neighbors of the node 100.
d) What is the length of the shortest path between node 70 and node 12?
Our website has a team of professional writers who can help you write any of your homework. They will write your papers from scratch. We also have a team of editors just to make sure all papers are of HIGH QUALITY & PLAGIARISM FREE. To make an Order you only need to click Ask A Question and we will direct you to our Order Page at WriteDemy. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.
Fill in all the assignment paper details that are required in the order form with the standard information being the page count, deadline, academic level and type of paper. It is advisable to have this information at hand so that you can quickly fill in the necessary information needed in the form for the essay writer to be immediately assigned to your writing project. Make payment for the custom essay order to enable us to assign a suitable writer to your order. Payments are made through Paypal on a secured billing page. Finally, sit back and relax.
About Writedemy
We are a professional paper writing website. If you have searched a question and bumped into our website just know you are in the right place to get help in your coursework. We offer HIGH QUALITY & PLAGIARISM FREE Papers.
How It Works
To make an Order you only need to click on “Order Now” and we will direct you to our Order Page. Fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.
Are there Discounts?
All new clients are eligible for 20% off in their first Order. Our payment method is safe and secure.
