+ 2

Can someone give a good example of the use of Threaded classes?

16th Mar 2016, 7:20 PM
Vitaly Yudin
Vitaly  Yudin - avatar
2 Antworten
+ 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.
18th Jul 2016, 12:15 AM
Itay Almog
Itay Almog - avatar
+ 2
multi threading enables you to write in a way where multiple activities can proceed concurrently in the same program.
2nd May 2016, 7:56 PM
Kapil Bharadwaj