blumi40 222 Posted June 13, 2013 Report Share Posted June 13, 2013 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 downloadlinkhttp://www.sendspace.com/file/f0cnbx Thread safe containeris usable as replacement for the normal threadcontainer and can be used like the normal Ubot Threadsthe difference between both is that Thread safe container is locked lists and tables as long it is in usewhat 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 containeris a bit more complex because it use Mutexhere is an C# Example for those who near to C#http://pastebin.com/U7AYW9xd The Mutexmethode is namebased what meansgive your System Wide Thread safe container a nameand all what u do under this name is locked for the systemwhat means if u run bots paralell and this bots use the same thread with the same procedure and Mutexnamethen 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 itMy thx for this awesome PlugIn goes to Wiiliam Bogacz and his CoderGreat JOB ! Hope u enjoy this little tut anddoing is learning soooo DO IT ! 7 Quote Link to post Share on other sites
alex 1 Posted June 13, 2013 Report Share Posted June 13, 2013 Nice howto! Quote Link to post Share on other sites
zdot 14 Posted June 13, 2013 Report Share Posted June 13, 2013 great tuto arno Quote Link to post Share on other sites
SaHiN 14 Posted June 15, 2013 Report Share Posted June 15, 2013 thank you blumi40. http://pastebin.com/U7AYW9xd deleted. help me Sample code ? Quote Link to post Share on other sites
blumi40 222 Posted June 15, 2013 Author Report Share Posted June 15, 2013 SaHinthread are standartfunctions in Ubot see the wiki. Quote Link to post Share on other sites
Kreatus (Ubot Ninja) 422 Posted July 11, 2013 Report Share Posted July 11, 2013 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. Quote Link to post Share on other sites
blumi40 222 Posted July 11, 2013 Author Report Share Posted July 11, 2013 easy to understanduse 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 oninstead 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 Quote Link to post Share on other sites
Kreatus (Ubot Ninja) 422 Posted July 11, 2013 Report Share Posted July 11, 2013 Thanks! I got how "thread safe container" work now.. But im still lost on how to use the system wide one.. Quote Link to post Share on other sites
blumi40 222 Posted July 12, 2013 Author Report Share Posted July 12, 2013 10 bots collect adresses10 bots use the same sqlite or textfileif one of that 10 bots write new stuff in this adressfile the other 9 have to wait Quote Link to post Share on other sites
dankass 52 Posted July 21, 2013 Report Share Posted July 21, 2013 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! Quote Link to post Share on other sites
Josh 37 Posted August 14, 2013 Report Share Posted August 14, 2013 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? Quote Link to post Share on other sites
blumi40 222 Posted August 14, 2013 Author Report Share Posted August 14, 2013 Is there a link to this TinyMCE plugin you mentioned?yes if your Eyes wide open :) Quote Link to post Share on other sites
TheBigWeb 40 Posted October 20, 2013 Report Share Posted October 20, 2013 This works like a charm Quote Link to post Share on other sites
jamesfar 15 Posted January 3, 2014 Report Share Posted January 3, 2014 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? Quote Link to post Share on other sites
UBotDev 276 Posted January 3, 2014 Report Share Posted January 3, 2014 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.ubotstudio.com/forum/index.php?/topic/15441-free-plugin-threads-counter-ubot-v4-threading-fixed/ Quote Link to post Share on other sites
blumi40 222 Posted January 3, 2014 Author Report Share Posted January 3, 2014 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 Stuffas 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 stuffif 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 jobis like LOCK and UNLOCK tables in MySQL 1 Quote Link to post Share on other sites
jamesfar 15 Posted January 4, 2014 Report Share Posted January 4, 2014 Thread safe Container is made for GLOBAL Lists, Tables and other global Stuffas 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 stuffif 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 jobis 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 Quote Link to post Share on other sites
cdbsystems 0 Posted February 27, 2014 Report Share Posted February 27, 2014 Can somone post an example of using the threadsafe container? Quote Link to post Share on other sites
earthlingj 13 Posted April 29, 2014 Report Share Posted April 29, 2014 'thread safe container' doesnt work with list functions like next list item and add item to list and maybe more. Quote Link to post Share on other sites
blumi40 222 Posted April 29, 2014 Author Report Share Posted April 29, 2014 sure it workssame like in normal threadsmaybe u forgot to set listposition to 0 Quote Link to post Share on other sites
earthlingj 13 Posted April 29, 2014 Report Share Posted April 29, 2014 with multithreading and lots of threads? Doesnt seem to be working. The thread loop count is much higher than the list position ( from next list item with thread safe container ) which means the thread safe container isnt working on the next listen item function otherwise the list position would be the same as the thread loop count just did many different tests. it doesnt work... if you think it works, id like to see a multi-threaded example of yours with lists functions that are 'thread safe contained' working with up to 100 threads. Quote Link to post Share on other sites
blumi40 222 Posted April 29, 2014 Author Report Share Posted April 29, 2014 the Thread safe container has absolut nothing to do with the counts of list,the only thing this does is if some thread go on a list or a file or a var, all others have to wait untill is doneis nothing else like a start transmision and comit so there is absolut no reason why this should not work. Quote Link to post Share on other sites
earthlingj 13 Posted April 29, 2014 Report Share Posted April 29, 2014 Yes i understand that, therefore if you have the thread safe container on a 'next list item' it should always wait for a thread to finish before it starts the next list item of the next. If you try it out, you'll see it only makes it worse and produces less results than without thread safe container. Please go to: http://www.ubotstudio.com/forum/index.php?/topic/15441-free-plugin-threads-counter-ubot-v4-threading-fixed/?p=95829 and try out that code. run it without a thread safe container. as you can see it still doesnt complete all 1k tasks because ubot cant handle 'add item to list' .... ' at the same time ' on multiple threadsNow add a thread safe container to that function, and you will see the results it produces are even LESS than without thread safe container. without i get about 50-60 total list items. with thread safe i get like 2.... Quote Link to post Share on other sites
blumi40 222 Posted April 29, 2014 Author Report Share Posted April 29, 2014 ahh okay i see....this is not a problem of the thread safe container i thing it has to do with ubot it self if u use threads that manywhat i saw, also Mem is an reason why things not work and even Windows did u try giv'm a "free ubot memory" in this TSC ?try it maybe that helps Quote Link to post Share on other sites
earthlingj 13 Posted April 29, 2014 Report Share Posted April 29, 2014 Yeah i tried with memory but i have plenty of memory i have 32 gigs ram and 320 gigs ssd drive with quad core processor. But doesnt it have to do with thread safe container? since it should contain the 'next list item' until the current thread finishes? 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.