Hello,
I have a conceptual question regarding the use of mutexes to access a shared resource, a linked list in this instance.
Say I have two threads that can access a linked list.
I understand that if I want to make changes to the linked list from either thread, that I need to use a mutex to have exclusive access while making changes to the list.
So for example, I obtain a lock, then add or delete a record, then unlock.
However I am thinking that if I am just reading the list, from either thread, that I don't need exclusive access and thus I don't need to obtain a lock.
Just wanting to confirm if my thinking here is correct; or if not, get some idea on why not / considerations.
Thanks
VW