0
Help me to change from mutex to swap solution please.
https://code.sololearn.com/cgtLB75P8II1/?ref=app I've used pthread_mutex solution in this code to solve critical section problem. How I can use swap solution in the same code. I did it many times but didn't work with me. Can any one help me please?! https://code.sololearn.com/cgtLB75P8II1/?ref=app
10 Respostas
0
https://code.sololearn.com/cTwgO21bkXwK/?ref=app
0
Can you show me how can I define TestAndSet and lock
0
Ok, thank you very much
0
It's OK, You've helped me a lot by caring.