in reply to Help on Understanding Locks in Multithreading
For what it is worth, I use threads without locking, by setting it up so each thread controls it's own output shared variables that are readonly from the outside, and the input shared vars are readonly from inside the thread. It's like setting up "one way streets". The few extra shared variables needed is more than made up for by not needing traffic control (locking).
|
|---|