Using static or not
Hello, i need some advice about static classes. Im developing a software that controlls a machine. All information about machine (free slots, state of stir, position of drawers, ...), must be accessible by a lot of pieces of software (threads or not), and also modified. For example, i have a thread that send commands to an arm to move one object from one place to another. Of course first this thread must be sure that in this position isn't another object, then move the object, and of course upgrade the position into software. Another thread (responsible of moving another arm), will use information of previous execution to take the previous object and move to another position, and so on.
The question is, what is better, use a static class with all this information (free slots, ...), so it is accessible by everywhere, but loosing knowledge of which threads modify it, or creating a singleton information class, and setting to every thread that needs this information as an attribute class, so when one thread modifies some information, all threads can see the changes?
Thank you very much for your help.

