+ 2
Can someone give a good example of the use of Threaded classes?
2 Answers
+ 4
let's say you have a website, normal none-threaded server will handle the request one by one... for some users it is ok, but for 1,000,000... it will be slow... a threaded server will create a thread for each request (maybe limiting the number of threads running at once but still) making so the requests are handled simultaneously. also in some games you have a thread for rendering and a thread for logic, making so the game renders without interfering the update/logic stuff.
+ 2
multi threading enables you to write in a way where multiple activities can proceed concurrently in the same program.