Mutual exclusion
Posted: Mon Jun 16, 2003 12:23 am
Hi, I am stuck at this multithreading thing -yes, its been about two and a half months and I am still here at the same place with no progress- I now have problem on mutual exclusion, more clearly, I am trying to avoid confusion when two threads call same function -so that they do not interfere with each other- certainly I need mutual exclusion, no I have two questions:
1) Do I have to add mutual exclusion code to all the functions that might be called by threads at the same time?
2) Can you give some hint on achieving this? ;D
Thanx... Unfortunately I could not get used to using the search function here, so I am sorry...
1) Do I have to add mutual exclusion code to all the functions that might be called by threads at the same time?
2) Can you give some hint on achieving this? ;D
Thanx... Unfortunately I could not get used to using the search function here, so I am sorry...