Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

A certain program consists of a sequential part (Part1) that takes 10 millisecon

ID: 3829214 • Letter: A

Question

A certain program consists of a sequential part (Part1) that takes 10 milliseconds to scan a file directory to locate 16 files each or which requires the same processing. Part1 then calls a function (Part2), that takes 48 milliseconds per file to process. All files require the same 48 ms to process. The program is run on two different systems, the first system has a single processor and the second system has a total of 32 cores. When the program is run on the 32-core system the program spawns multiple processes each of which runs on a separate core to execute Part2 to process one file in parallel with the other processes. If the total time required to spawn all of the required processes is 4 milliseconds, what speedup would be provided by running the program on the 32-core system compared to running it on the single processor system?

Explanation / Answer

Single core processors have only one processor in die to process instructions. All the processor developed by different manufacturers till 2005 were single core. As we try to increase the clock speed of this processor, the amount of heat produced by the chip also increases. It is a big hindrance in the way of single core processors to continue evolving.

32-core processors use two or more cores to process instructions at the same time by using hyper threading. The multiple cores are embedded in the same die. The multicore processor may looks like a single processor but actually it contains two (dual-core), three (tricore), four (quad-core), six (hexa-core), eight (octa-core) or ten (deca-core) cores. Due to power and temperature constraint, the multicore processors are only practical solution for increasing the speed of future computers.

Single processor can execute Single instruction at a time, Speed up every program or software being executed, Dependent on the clock frequency of the core.

32-core system can execute multiple instructions by using multiple cores, Speed up the programs which are designed for multi-core processors, Dependent on the frequency, number of cores and program to be executed.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote