Thread lock on tags

I’m trying to build a multi-threaded application in ignition where I have a set of workers and they pull from a data set 2 of jobs. Currently I have the issue that the real rights the tag are not thread locks so I am the end up over rating data immediately after writing it from another thread and losing that information.

Is it possible to lock a tag while I’m reading or writing from it so that I don’t have this multithreading issue?

Consider using script modules with python persistent variables (I recommend dictionaries) to hold your state, writing it to tags as needed for distribution to interested parties (clients, other consumers). Jython/python has a number of locking methods and threading-compatible data-structures that are likely to meet your needs.