threads: 6boss worker processes in 120 ms
pipeline - each stage processes in 20 ms
how long will it take both for 10 orders?
-
boss worker = time_finish_1order * (num of orders / num of threads)
pipeline = time_finish_1order + (remaining orders * time_finish_lastOrder)
BW = 120 * (10/6) = 120 * 2 = 240 ms
Pipeline:
time_finish_1order = 6 * 20 = 120 ms
remaining orders * time_finish_last order = 9 * 20 = 180
pipeline = 120 + 180 = 300 ms
comment:
p_commentcount