Question 1 of 10
A photo app must apply the same filter to 8 independent images. A setup step that loads filter settings takes 2 seconds and cannot be split. Each image filter takes 5 seconds on one core.
On one core, total time is 2 + 8*5 = 42 seconds. Which change reduces total time if four cores filter images at once after the shared setup?
- A. Run the 8 independent filters in parallel after the 2-second setup so time becomes 2 + 2*5 = 12 seconds when images are split across four cores in two waves of 4.
- B. Repeat the setup eight separate times on purpose before any filtering.
- C. Force every image to wait for all others with no overlapping work.
- D. Replace independent filters with a longer single-threaded setup only.