97.8k views
1 vote
A single processor takes 20 milliseconds (ms) to prepare data entries and 0.1n ms to copy data entries, where n is the number of entries. A multiprocessor takes 70ms to prepare and copy one data entry, and whenever the number of entries is doubled, the amount of time to prepare and copy them increases by 5ms. Given 120ms to prepare and copy data entries, which processor type can prepare and copy more data entries and by how many more entries can it prepare and copy?

A. Single processor; 60 entries
B. Single processor; 80 entries
C. Multiprocessor; 40 entries
D. Multiprocessor; 60 entries

User Sherlin
by
7.6k points

1 Answer

2 votes

Final answer:

To solve this problem, we can set up equations representing the time taken by each processor to prepare and copy data entries. The single processor can prepare and copy 90 entries, while the multiprocessor can prepare and copy 40 entries.

Step-by-step explanation:

To solve this problem, we can set up equations representing the time taken by each processor to prepare and copy data entries. Let's assume that the number of entries is n.

For the single processor, the time taken is 20 milliseconds to prepare the data entries and 0.1n milliseconds to copy them. So the total time taken by the single processor is 20 + 0.1n milliseconds.

For the multiprocessor, the time taken is 70 milliseconds to prepare and copy one data entry. When the number of entries is doubled, the time increases by 5 milliseconds. So we can write the equation: 70 + (n/2) * 5 = 120 milliseconds.

Solving this equation, we get n = 40 entries. Therefore, the multiprocessor can prepare and copy 40 entries, while the single processor can prepare and copy 70 + (40/2) * 5 = 90 entries. Therefore, the single processor can prepare and copy 90 - 40 = 50 more entries than the multiprocessor.

User Abhishek Bhutra
by
7.4k points