jamesfar 15 Posted October 14, 2014 Report Share Posted October 14, 2014 So since it said that multithreading is fixed on ubot 5.5 so we don't need to use threadcounter plugin to make it works And now how we do multi threading (ex. login using multi account to same site) on ubot 5.5 ? How we structured our code? Anyone has an example to follow along? Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted October 14, 2014 Report Share Posted October 14, 2014 http://www.ubotstudio.com/forum/index.php?/topic/10042-new-v4-tutorial-multi-threading-example/Should be the same way. Quote Link to post Share on other sites
Pete 121 Posted October 14, 2014 Report Share Posted October 14, 2014 From my testing it is not fixed Amand's HTTP POST 2.5.4 plugin conflicts with it(you have to disable it, and restart ubotsudio), and the "socket page html" only works with a single thread. also I can't see how it could work without a thread counter of some sort. Quote Link to post Share on other sites
Pete_UK 9 Posted October 25, 2014 Report Share Posted October 25, 2014 I'm a tad confused with the current state of play with multi threading in v5.5. Has anyone done some serious testing with 5.5? Care to share your findings? Are variables, lists and tables now thread-safe? Quote Link to post Share on other sites
UBotDev 276 Posted October 25, 2014 Report Share Posted October 25, 2014 Variables seem to be safe, I've ran this test and it passes, so it looks like variables are now safe. Not sure about lists and tables, haven't done any testing related to those... 1 Quote Link to post Share on other sites
Pete 121 Posted October 25, 2014 Report Share Posted October 25, 2014 I'm a tad confused with the current state of play with multi threading in v5.5. I would say at this point it looks hopeful but still needs more work, without posting details the html panel has problems as the bots get bigger, along with displaying the debugger, as far as I know lists and tables are still globe. Lack of fixes over the last few weeks not looking so good. Quote Link to post Share on other sites
deliter 203 Posted November 5, 2014 Report Share Posted November 5, 2014 From my testing it is not fixed Amand's HTTP POST 2.5.4 plugin conflicts with it(you have to disable it, and restart ubotsudio), and the "socket page html" only works with a single thread. also I can't see how it could work without a thread counter of some sort. Hi I actually sent support a ticket about this issue ''and the "socket page html" only works with a single thread'' with no success, HOWEVER seems it still does work,have been tinkering around for ages,really considered going back to ubot 5,however,the coding has just changed around slightly,if you try this snippet,it works,to get $socket page html,working in multiple threads,I have just realised this now,so maybe there is some problems,but if you put the threads within a socket container,and do not add additional socket containers,seems to work,try below code set(#one, "", "Global")set(#two, "", "Global")plugin command("SocketCommands.dll", "socket container") { thread { plugin command("SocketCommands.dll", "socket navigate", "GET", "http://webrates.truefx.com/rates/connect.html?f=html&c=AUD/USD") set(#a, $plugin function("SocketCommands.dll", "$socket page html"), "Global") set(#one, 1, "Global") } thread { plugin command("SocketCommands.dll", "socket navigate", "GET", "http://webrates.truefx.com/rates/connect.html?f=html&c=GBP/USD") set(#b, $plugin function("SocketCommands.dll", "$socket page html"), "Global") set(#two, 2, "Global") }}loop while($comparison($add(#one, #two), "!=", 3)) {}alert("{#a}{$new line}{#b}") 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.