Jump to content



Photo

[HowTo]..run Thread safe Container


  • Please log in to reply
26 replies to this topic

#21 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:42 PM

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.



#22 blumi40

blumi40

    Advanced Member

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

Posted 29 April 2014 - 03:06 AM

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 done

is nothing else like a start transmision  and comit 

so there is absolut no reason why this should not work.



#23 earthlingj

earthlingj

    Advanced Member

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

Posted 29 April 2014 - 07:15 AM

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.ubotstudi...-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 threads

Now 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.... 



#24 blumi40

blumi40

    Advanced Member

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

Posted 29 April 2014 - 09:25 AM

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 many

what 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



#25 earthlingj

earthlingj

    Advanced Member

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

Posted 29 April 2014 - 11:58 AM

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? 



#26 BeerNut

BeerNut

    Advanced Member

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

Posted 21 March 2015 - 08:48 AM

I just formatted and reinstalled everything and I don't have this plugin anymore. The link in the first post is dead. Can anyone reupload or share it again?

 

Thanks.



#27 ed08724

ed08724

    Advanced Member

  • Members
  • PipPipPip
  • 68 posts
  • OS:Windows 7
  • Total Memory:< 1Gb
  • Framework:v4.0
  • License:Professional Edition

Posted 17 June 2017 - 06:52 AM

is this still available and needed. having weird issues with multiple threads and tables thinking this might be my issue. Thanks.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users