351 * 信号量数据结构 ( SEMAPHORE DATA ) 365 * 任务堆栈数据 ( TASK STACK DATA ) 379 * 任务控制块 (TASK CONTROL BLOCK) ..
基于24个网页-相关网页
MUTUAL EXCLUSION SEMAPHORE DATA 互斥型信号量数据
When a semaphore protects a large amount of data, assuming one or more tasks USES it on a write basis, the semaphore becomes a bottleneck within the system.
在一个信号量保护大量数据时,如果一个或多个任务使用它进行写操作,这个信号量就会成为系统瓶颈。
This command immediately removes the semaphore set and its data structures, awakening all waiting processes (with an error return and errno set to EIDRM).
这个命令将立即删除信号量集及其数据结构,并唤醒所有正在等待的进程(如果发生错误,则返回,并将errno设置为EIDRM)。
We recommend a better strategy: to remain aware of the data requirements from a program design viewpoint and have a semaphore protect smaller amounts of data.
我们推荐一种更好的战略:从程序设计的视角分析数据需求,让一个信号量保护的数据量更少。
应用推荐