Running a process on a computer with -processors does not necessarily reduce the runtime by folds. Let's try to see how bad this can be at times.
Chris bought a house with 10 rooms: 9 of them are of the same size and the one is double that size.
Let's say that the time Chris takes to complete painting the entire house all by himself is units.
Chris realises that units is pretty long and invites 9 friends over, who work at the same rate as him. (To clarify, we have 10 people working now).
Let's further say that the time all these people take to complete painting the entire house if they are working together simultaneously is units.
Find the ratio .
Clarification : The walls are being painted with complex patterns. Not more than one person can work on painting the same room at a time since it is hard for them to coordinate.
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Assume it takes x units of time to complete one room. Also, let y represent the time it takes to paint the "double" room. We can see that, at the same painting pace, y = 2 x . Then a = 9 x + y = 9 x + 2 x = 1 1 x .
Now with 10 people over, lets let each person reside in their own room and not be able to help the other rooms. If they all work at the same pace, then after x units of time, all of the single rooms are finished, and half the double room is finished. One more x units of time later and the 10th man will have finished the double room. This means that b = 2 x .
b a = 2 x 1 1 x = 2 1 1 = 5 . 5