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
    4 Posts
    1189 Views
  • Multi-threads

    Support
    0 Votes
    1 Posts
    456 Views
  • 0 Votes
    7 Posts
    1117 Views
  • 0 Votes
    6 Posts
    978 Views
  • 0 Votes
    5 Posts
    2352 Views