由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - thread, semaphore, 问题。
相关主题
pthread mutex能不能用与thread和process之间一般thread-safe access
why do we need to map user threads to kernel threads?多线程 编程,process 和 thread 的一些问题。
关于multi threadMFC里如何判断一个线程处在Wait的状态?
多个thread的通信C10M除了socket以外,还牵涉其他方面的技巧
精华区翻出来的MS老题,thread safe怎么练习multi-threading,平常工作都是用Java框架
请教一个linux下面的多线程semaphore的问题。为什么说semaphore是一种进程间的通信方式。
请教一个线程同步的问题。multi threading 还是 multi processing
真正的multi-threading是5个thread要5个cpu?那apache是真正的mpython下的expect
相关话题的讨论汇总
话题: semaphore话题: thread话题: user话题: mode话题: kernel
进入Programming版参与讨论
1 (共1页)
j******a
发帖数: 1599
1
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?

1 (共1页)
进入Programming版参与讨论
相关主题
python下的expect精华区翻出来的MS老题,thread safe
多线程编程前景如何?请教一个linux下面的多线程semaphore的问题。
c++下如何实现多线程?请教一个线程同步的问题。
[合集] 怎么样提高自己的multi-thread programming能力?真正的multi-threading是5个thread要5个cpu?那apache是真正的m
pthread mutex能不能用与thread和process之间一般thread-safe access
why do we need to map user threads to kernel threads?多线程 编程,process 和 thread 的一些问题。
关于multi threadMFC里如何判断一个线程处在Wait的状态?
多个thread的通信C10M除了socket以外,还牵涉其他方面的技巧
相关话题的讨论汇总
话题: semaphore话题: thread话题: user话题: mode话题: kernel