I try to use atomic variable as possible as instead of mutex.
Because Atomic variable works on user mode but mutex works on kernel mode, So atomic is much faster than mutex.
But i have question about atomic variable.
Does Atomic variable do acquire, release only cache line where it is at.
If it is right, To Release All cache lines, Should I use mutex???
Aucun commentaire:
Enregistrer un commentaire