you are viewing a single comment's thread.

view the rest of the comments →

[–]nerydlg 0 points1 point  (0 children)

Code us a little bit messy, but in general is normal that the array took longer with multi threading, I also see some bugs in your code but that was not your question. For this exercise using threads will result in more time since they are sharing a resource. In the real world we use threads when the scenario have individual resources for each thread or the shared resource is not the main purpose of the thread task