@bennettjimmy63 its pretty simple just after Initialize just go on
Script statics - Thread number OK
then
Waiters - Sleep - [[THREAD_INDEX]]*(time to wait ms)
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.
-
@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.