鉴于pthread_spin_lock可用,我什么时候可以使用它,什么时候不应该使用它们?
即我如何决定使用pthread互斥锁或pthread自旋锁来保护某些共享数据结构?
c pthreads
c ×1
pthreads ×1