about critical section# Programming - 葵花宝典
k*r
1 楼
请教difference between critical section, mutex and semaphore:
critical section a block of codes which requires atomic operation.
mutex and semaphore 是用来实现 critical section的。
就这关系把?
我以前一直以为 mutex and semaphore 是用来限制 resource,
critical section 是用来限制行动的, 感觉理解有误。
critical section a block of codes which requires atomic operation.
mutex and semaphore 是用来实现 critical section的。
就这关系把?
我以前一直以为 mutex and semaphore 是用来限制 resource,
critical section 是用来限制行动的, 感觉理解有误。