32
edits
Changes
→Example
</pre>
In this example we have provided we provided a single thread and a multi thread solution.
Based on results the single thread solution runs faster then the multi thread. But why?
The reason for this is the synchronization and cache invaliadtion overheads cause the slower execution time for the multi-threaded solution. Despite the execution being split between 2 threads.
== Sources ==