why user-mode threads in a single process can use a user-mode semaphore but
cannot use a kernel semaphore to perform synchronization?
t****t 发帖数: 6806
2
because a kernel sem will not yield control to another user-mode thread in
case a waiting has to happen.
but
【在 j******a 的大作中提到】 : why user-mode threads in a single process can use a user-mode semaphore but : cannot use a kernel semaphore to perform synchronization?
bz 发帖数: 1770
3
you can, if you can give the user thread the access to the kernl sem. need
to be cautious though.
but
【在 j******a 的大作中提到】 : why user-mode threads in a single process can use a user-mode semaphore but : cannot use a kernel semaphore to perform synchronization?