Threads communication

Support
  • Hi everyone. I need to do communication between threads in one application. How i got that it is really tricky to implement and i don't like those solutions. Global variables can handle only strings and integers, because functions or arrays binded to global variables works only in current thread and disappear in others. For example i have an object['key81'] that i need to increment from all threads, and there can be many of those keys. How to do this? Thanks.

  • @cronjupiter said in Threads communication:

    Hi everyone. I need to do communication between threads in one application. How i got that it is really tricky to implement and i don't like those solutions. Global variables can handle only strings and integers, because functions or arrays binded to global variables works only in current thread and disappear in others. For example i have an object['key81'] that i need to increment from all threads, and there can be many of those keys. How to do this? Thanks.

    An object in a global variable is ideal for your task. Look on the forum, I gave an example of the implementation.

  • 0 Votes
    1 Posts
    333 Views
  • csv + thread

    Support
    0 Votes
    3 Posts
    570 Views
  • Multi-threads

    Support
    0 Votes
    1 Posts
    404 Views
  • Threads bug

    Support
    0 Votes
    2 Posts
    1063 Views
  • Thread went success unexpectedly

    Support
    0 Votes
    1 Posts
    884 Views