Solved by ptrblck in post #2 
              
              
                No, if you are using multiple workers, the changes won’t be reflected. 
What is your use case? 
Maybe you could use shared arrays?