Hi All,
I need some clarification on on mutex.
Is it possible to use an normal locking (As shown in below code) to serialize access to critical section in threads.
if we cant use this to serialize threads, Can you please explain me or give me a pointer where i can read on this.
Thanks in adavance
Reagards,
Manjunath
I need some clarification on on mutex.
Is it possible to use an normal locking (As shown in below code) to serialize access to critical section in threads.
Code:
int lock; if(lock!= 1){ lock++; //do something here lock--; }
Thanks in adavance
Reagards,
Manjunath
Comment