Jump to content



Photo

[HowTo]..run Thread safe Container


  • Please log in to reply
26 replies to this topic

#1 blumi40

blumi40

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 968 posts
  • LocationEurope/Germany
  • OS:Windows 8
  • Total Memory:8Gb
  • Framework:v4.0
  • License:Developer Edition

Posted 13 June 2013 - 06:09 AM

here a short and dirty explain how u use the Thread commands from Wiiliam Bogacz  TinyMCE Integration PlugIn. which is free and can be downloadet here
 

Temporare downloadlink

 

Thread safe container

is usable as replacement for the normal threadcontainer and can be used like the normal Ubot Threads

the difference between both is that Thread safe container is locked lists and tables as long it is in use

what means all your other threads has to wait until unlocking.

this is a very good methode to prevent conflicts.

 

it is near to the Lock-Methodes of Databases like Oracle or MySQL

 

System Wide Thread safe container

is a bit more complex because it use Mutex

here is an C# Example for those who near to C#

http://pastebin.com/U7AYW9xd

 

The Mutexmethode is namebased what means

give your System Wide Thread safe container a name

and all what u do under this name is locked  for the system

what means if u run bots paralell  and this bots use the same thread with the same procedure and Mutexname
then there have to wait untill  the locked "
System Wide Thread safe container" is giving free

 

So that brings u the possiblety to do many things under one name with the gurantee  no other processes will work with it as long it is locked

 

for me Thread safe container is a massiv tool and a complete replace for the standart thread container.
check it by u self  i'm sure u will LUV it

My thx for this awesome PlugIn goes to 
Wiiliam Bogacz and his Coder
Great JOB !

 

Hope u enjoy this little tut and
doing is learning soooo  DO IT !

 

 

 

 

 


  • Kreatus (Ubot Ninja) , alex , TheBigWeb and 4 others like this

#2 alex

alex

    Member

  • Members
  • PipPip
  • 25 posts

Posted 13 June 2013 - 06:25 AM

:D Nice howto!



#3 zdot

zdot

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 218 posts
  • LocationMontpellier, France
  • OS:Windows 8
  • Total Memory:8Gb
  • Framework:v4.0
  • License:Developer Edition

Posted 13 June 2013 - 07:38 AM

great tuto arno



#4 SaHiN

SaHiN

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 247 posts
  • OS:Windows 7
  • Total Memory:8Gb
  • Framework:v3.5 & v4.0
  • License:Developer Edition

Posted 15 June 2013 - 02:07 PM

thank you blumi40.

 

http://pastebin.com/U7AYW9xd  deleted.

 

 

help me Sample code ?



#5 blumi40

blumi40

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 968 posts
  • LocationEurope/Germany
  • OS:Windows 8
  • Total Memory:8Gb
  • Framework:v4.0
  • License:Developer Edition

Posted 15 June 2013 - 02:19 PM

SaHin

thread are standartfunctions in Ubot see the wiki.



#6 Kreatus (Ubot Ninja)

Kreatus (Ubot Ninja)

    Custombotsolutions.com

  • Fellow UBotter
  • PipPipPip
  • 3193 posts
  • OS:Windows 10
  • Total Memory:More Than 9Gb
  • Framework:v4.5+, unsure
  • License:Developer Edition

Posted 11 July 2013 - 03:57 AM

Hi Blumi, Do you have a sample code on how to use these 2 commands? It seems so powerful but im not sure how to use it right now.. I tried to use it like the normal thread command but it didnt work. Im sure im doing something wrong..

 

Thanks in advance.



#7 blumi40

blumi40

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 968 posts
  • LocationEurope/Germany
  • OS:Windows 8
  • Total Memory:8Gb
  • Framework:v4.0
  • License:Developer Edition

Posted 11 July 2013 - 06:19 AM

easy to understand
use your threads like u did before  inside this threads  use the thread save container  everytime u have to do things exclusive  like  save your threadlist to the masterlist and so on
instead to use  switches who tells the other threads  stop u cant and have to wait until im open again.
same with systemwide thread save container...

as example u got many bots running  working all with the same masterlist  with systemwide tsc every bot will wait untill  the one who fill in this masterlist is finnished...

 

for all the geeks here  works like a mysql Lock and unlock

 

hope that helps



#8 Kreatus (Ubot Ninja)

Kreatus (Ubot Ninja)

    Custombotsolutions.com

  • Fellow UBotter
  • PipPipPip
  • 3193 posts
  • OS:Windows 10
  • Total Memory:More Than 9Gb
  • Framework:v4.5+, unsure
  • License:Developer Edition

Posted 11 July 2013 - 09:44 AM

Thanks! I got how "thread safe container" work now.. But im still lost on how to use the system wide one..



#9 blumi40

blumi40

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 968 posts
  • LocationEurope/Germany
  • OS:Windows 8
  • Total Memory:8Gb
  • Framework:v4.0
  • License:Developer Edition

Posted 11 July 2013 - 05:20 PM

10 bots collect  adresses
10 bots use the same sqlite or textfile
if one of that 10 bots write new stuff in this adressfile the other 9 have to wait



#10 dankass

dankass

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 286 posts
  • LocationUnited States
  • OS:Windows 8
  • Total Memory:8Gb
  • Framework:v4.0
  • License:Developer Edition

Posted 21 July 2013 - 12:47 PM

This is pretty awesome! How did this plugin slip by me, and where can I find out more information about this plugin?  I'm curious why its called Tinymce Integration and wondering how this works to use tinymce actually.

 

Thanks man, this is an awesome share!



#11 Josh

Josh

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 352 posts
  • OS:Windows 8
  • Total Memory:More Than 9Gb
  • Framework:v3.5 & v4.0
  • License:Developer Edition

Posted 14 August 2013 - 02:36 PM

here a short and dirty explain how u use the Thread commands from Wiiliam Bogacz  TinyMCE Integration PlugIn. which is free and can be downloadet here

 

Is there a link to this TinyMCE plugin you mentioned?



#12 blumi40

blumi40

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 968 posts
  • LocationEurope/Germany
  • OS:Windows 8
  • Total Memory:8Gb
  • Framework:v4.0
  • License:Developer Edition

Posted 14 August 2013 - 03:37 PM

Is there a link to this TinyMCE plugin you mentioned?

yes if your Eyes wide open :) :)



#13 TheBigWeb

TheBigWeb

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 196 posts
  • OS:Windows 7
  • Total Memory:6Gb
  • Framework:v4.0
  • License:Developer Edition

Posted 20 October 2013 - 03:24 AM

This works like a charm :)



#14 jamesfar

jamesfar

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 527 posts
  • OS:Windows 8
  • Total Memory:More Than 9Gb
  • Framework:v4.0
  • License:Developer Edition

Posted 02 January 2014 - 06:17 PM

i just got a chance to try this today

 

runs 1000 threads but it seems like run only 1 thread because other threads have to wait

 

is this the correct work blumi?


The best proxies provider so far.
* Fast and Great Support. * No software restriction.

* It is favourite proxies provider on GSA forum. * Almost 2000 positive reviews on fiverr. * More than 1000s active clients

 

Try It !


#15 UBotDev

UBotDev

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 1395 posts
  • OS:Windows 10
  • Total Memory:More Than 9Gb
  • Framework:v3.5 & v4.0
  • License:Developer Edition

Posted 02 January 2014 - 07:11 PM

i just got a chance to try this today

 

runs 1000 threads but it seems like run only 1 thread because other threads have to wait

 

is this the correct work blumi?

Maybe you can try my plugin, I think it will work faster...
http://www.ubotstudi...hreading-fixed/


CLICK UBotDev.com - Download FREE UBot Plugins!

______________________________________________

 


#16 blumi40

blumi40

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 968 posts
  • LocationEurope/Germany
  • OS:Windows 8
  • Total Memory:8Gb
  • Framework:v4.0
  • License:Developer Edition

Posted 03 January 2014 - 12:43 PM

i just got a chance to try this today

 

runs 1000 threads but it seems like run only 1 thread because other threads have to wait

 

is this the correct work blumi?

Thread safe Container is made for GLOBAL Lists, Tables and other global Stuff
as example....

in your threads u will run your local lists and if the thread has made his job u can use Thread safe Container  to save your things from local stuff to global stuff
if your Global List,Table or what else is in this Container  no other thread can use it as long the used thread are finnished his job
is like LOCK and UNLOCK tables in MySQL


  • jamesfar likes this

#17 jamesfar

jamesfar

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 527 posts
  • OS:Windows 8
  • Total Memory:More Than 9Gb
  • Framework:v4.0
  • License:Developer Edition

Posted 04 January 2014 - 02:56 AM

Thread safe Container is made for GLOBAL Lists, Tables and other global Stuff
as example....

in your threads u will run your local lists and if the thread has made his job u can use Thread safe Container  to save your things from local stuff to global stuff
if your Global List,Table or what else is in this Container  no other thread can use it as long the used thread are finnished his job
is like LOCK and UNLOCK tables in MySQL

 

I understand the concept of LOCK and UNLOCK

 

for example if all these 1000 threads using the same global list then when the first thread processing the list then the other 999 threads has to wait that first thread to be finished

 

That is what i mean like running 1 thread instead of multithreading


The best proxies provider so far.
* Fast and Great Support. * No software restriction.

* It is favourite proxies provider on GSA forum. * Almost 2000 positive reviews on fiverr. * More than 1000s active clients

 

Try It !


#18 cdbsystems

cdbsystems

    Newbie

  • Fellow UBotter
  • Pip
  • 1 posts
  • OS:Windows 8
  • Total Memory:< 1Gb
  • Framework:v3.5
  • License:Professional Edition

Posted 27 February 2014 - 06:17 AM

Can somone post an example of using the threadsafe container?



#19 earthlingj

earthlingj

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 208 posts
  • OS:Windows 8
  • Total Memory:< 1Gb
  • Framework:v3.5
  • License:Standard Edition

Posted 28 April 2014 - 07:27 PM

'thread safe container' doesnt work with list functions like next list item and add item to list and maybe more. 



#20 blumi40

blumi40

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 968 posts
  • LocationEurope/Germany
  • OS:Windows 8
  • Total Memory:8Gb
  • Framework:v4.0
  • License:Developer Edition

Posted 28 April 2014 - 07:32 PM

sure it works
same like in normal threads
maybe u forgot to set listposition to 0






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users