Hack Forums
Speed Of Multi Threaded Non Socket Application - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Coders Lounge (https://hackforums.net/forumdisplay.php?fid=5)
+---- Thread: Speed Of Multi Threaded Non Socket Application (/showthread.php?tid=2353007)



Speed Of Multi Threaded Non Socket Application - ejrussell - Mar 30, 2012

If I had an application that was a content generator and was generating millions of pages for 1000 websites lets say. If I were to make it multi threaded would it be any faster. The reason Im asking is because an application that connects to the internet with many threads would be faster because many threads are established and then many TCP/IP requests are sent and received. If there was only one thread then there is a wait time for a request to come back. In this time other requests could be sent and/or handled. But in an application that is all local is there any benefit to multi threading.


* - betamonkey - Mar 30, 2012

Yes, no question about it. Multi-threaded applications are how you utilize multiple cores in a CPU as well. I guarantee things will be much speedier with the use of multiple threads.