Code Docta (Nick C.) 638 Posted December 18, 2014 Report Share Posted December 18, 2014 Hey Ladies and Gent's, Introducing Asynco A Technique in Threading... http://network.ubotstudio.com/store/wp-content/uploads/sites/2/2016/12/thread-docta-pro-edition.png http://network.ubotstudio.com/store/wp-content/uploads/sites/2/2016/12/ubot-advanced-threading-boot-camp-550-b-r-600x600.png Updated and some example codes, read this. Basically what this does is: splits a list into a bunch of other lists spins up threads based on how many lists there are each thread loops through their respective lists until complete combines all list into oneSay you have 1000 usernames and passwords. You tell the bot to split the list into 100 each. This will create 10 threads and each thread will loop through 100 items (UN's and PW's or URL's). Creating threads is an expensive task, so your resources are spent in creating them. Asynchronous Programming helps to do more with less resources. In this example I will demonstrate just this from both sides and you can come to your own conclusion. The bot will make DB's and join them to create a data set. Why to not one?In case someone wants to know how it's done. Yes, I certainly could have made just one. The two databases are (1000)usernames,passwords and the other are (200)proxies. In the bot you can play with these values if you like. The joining demos how to assign the proxies to a larger list. Then just enter the amount to split the list by. The higher the number, less threads are created. Hit run!!! Plugins used: Advanced.File.dll Kev123Bigtable.dll Kev123Diagnosticfunctions.dll Kev123StringManagementPlugin.dll AymenAll are free and available in the BST forum Give it a whirl with different values, lemme know what you think!!!!!! Enjoy, CD Working on some real world examples...so stay tuned.Asynco-Example.ubot 10 Quote Link to post Share on other sites
rocket976 62 Posted December 19, 2014 Report Share Posted December 19, 2014 Thanks for the insight 1 Quote Link to post Share on other sites
a2mateit 395 Posted December 19, 2014 Report Share Posted December 19, 2014 This is EXACTLY how I have been threading for quite some time now! Makes the crashes happen less frequently, and generally makes threading ALOT more stable. 1 Quote Link to post Share on other sites
giganut 109 Posted December 19, 2014 Report Share Posted December 19, 2014 Looking good TC as always, thanks for the exsample. 1 Quote Link to post Share on other sites
Code Docta (Nick C.) 638 Posted December 19, 2014 Author Report Share Posted December 19, 2014 Thanks for the insightYou are welcome! This is EXACTLY how I have been threading for quite some time now! Makes the crashes happen less frequently, and generally makes threading ALOT more stable.That's exactly why I am sharing it now and not some weeks/months from now!So everyone can benefit from this knowledge. Feel free to share yours here or in another thread.Since you have been doing it for some time now you must have some really good examples to share with those that are struggling. Knowledge is power and sharing is caring!! Indeed tis more stable. CD 3 Quote Link to post Share on other sites
deliter 203 Posted February 9, 2015 Report Share Posted February 9, 2015 I can hardly make out any of that code,still don't get threading but thanks man Quote Link to post Share on other sites
Code Docta (Nick C.) 638 Posted February 9, 2015 Author Report Share Posted February 9, 2015 I have been working on some examples that should help. Coming soon... This code is just splitting the list into smaller chunks and putting each chunk into a thread. Each thread has its own set of variables and list so they are not able to have cross thread contamination. In other words no thread locking needed to prevent other threads from changing values while another thread is using it. So each thread is a separate bot totally independent of the others. CD 1 Quote Link to post Share on other sites
jamesfar 15 Posted July 15, 2015 Report Share Posted July 15, 2015 where is the real world example? Quote Link to post Share on other sites
the_way 52 Posted July 15, 2015 Report Share Posted July 15, 2015 Wow you must be building some super bots with this, Quote Link to post Share on other sites
Code Docta (Nick C.) 638 Posted December 15, 2016 Author Report Share Posted December 15, 2016 I updated the code and it does not require the string management plugin any more. You can get it here...http://network.ubotstudio.com/store/wp-content/uploads/sites/2/2016/12/thread-docta-pro-edition.png And some example sources here...http://network.ubotstudio.com/store/wp-content/uploads/sites/2/2016/11/ubot-advanced-threading-boot-camp-550.png Just click the images. Regards,CD Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.