Examples where multithreading fails to improve the performance of the program
Answers
Answered by
0
Explanation:
I hear everyone talking about how multi-threading can improve performance. I don't believe this, unless there is something I'm missing. If I have an array of 100 elements and traversing it takes 6 seconds. When I divide the work between two threads, the processor would have to go through the same amount of work and therefore time, except that they are working simultaneously but at half the speed. Shouldn't multi threading make it even slower? Since you need additional instructions for dividing the work?
Similar questions
Science,
6 months ago
History,
6 months ago
Physics,
6 months ago
Social Sciences,
11 months ago
Physics,
1 year ago