Computer Science, asked by MPriyanka2624, 10 months ago

Examples where multithreading fails to improve the performance of the program

Answers

Answered by DeviIQueen
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