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