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).
In reply to Re: Help on Understanding Locks in Multithreading
by zentara
in thread Help on Understanding Locks in Multithreading
by koti688
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |