About arrays mutex and threads...
Posted: Mon Apr 07, 2025 10:39 am
If I have a global array: Texts.s(10) and 10 threads accessing this array but only on her index number, should I use a mutex because the array is global or not needed because each thread access only her index position?
Thread_0 can access only to Texts(0)
Thread_1 can access only to Texts(1)
and so on...
Thread_0 can access only to Texts(0)
Thread_1 can access only to Texts(1)
and so on...