Jump to content
UBot Underground

Long Wait In Between Killing/creating Threads


Recommended Posts

I am trying to use threads to scrape data from a site but am running into a major delay issue. At first about a minute passes between when threads should be closing and being spawned. I am using threads to run my bot more efficiently and save time but as of right now it is slower than not using threads. 

 

I have tried using the thread count plugin + thread, thread count + thread spawn. I am also using the exbrowser plugin.

 

Has anyone ever experienced this?

Link to post
Share on other sites

Can you post your code? You won't need the threads counter plugin in Ubot 5 anymore although it won't hurt to use. Threads counter plugin doesn't do anything for thread spawn by the way. If you want to use that then do threading this way (which is the way I would recommend anyways): http://network.ubotstudio.com/forum/index.php/topic/10042-new-v4-tutorial-multi-threading-example/

Link to post
Share on other sites

Can you post your code? You won't need the threads counter plugin in Ubot 5 anymore although it won't hurt to use. Threads counter plugin doesn't do anything for thread spawn by the way. If you want to use that then do threading this way (which is the way I would recommend anyways): http://network.ubotstudio.com/forum/index.php/topic/10042-new-v4-tutorial-multi-threading-example/

 

That was my mistake. I used thread spawn by itself. I will be posting my code later today. 

Link to post
Share on other sites

As Nick said, I would stay away from  thread spawn. Do it the old school way. That's working fine and you have more control about what's going on.

And you can track status and everything.  thread spawn  is more of a black box. For basic stuff and people who start with it, it's fine. But for everything advanced. 

Take a look at the link Nick posted.

 

Dan

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...