![]() |
|
[.NET] Using ThreadPools - 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: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [.NET] Using ThreadPools (/showthread.php?tid=1412481) |
Using ThreadPools - #Macklemore - Jun 24, 2011 To begin threadpools acts like a static object so if you were to use it you would just go like PHP Code This method is called as such PHP Code Now what if you had a method with parameters, well it takes a little bit of extra coding but it is plausible. Before i show the code the basis is just creating a class and having all your parameters in the constructor then having the method within that class which will draw its variables through the newly declared ones in the constructor; PHP Code That the basics of the ThreadPool class and now i just want to show one example of creating multiple threads. PHP Code thanks for reading and the last thing i want to say is remember to PHP Code 🎉🎉🎉🎉🎉 |