參數(shù)資料
型號: RX78K4
英文描述: 78K/IV Series Real-Time OS Fundamental | User's Manual[01/1997]
中文描述: 78K/IV系列實(shí)時操作系統(tǒng)的基本|用戶手冊[01/1997]
文件頁數(shù): 23/96頁
文件大?。?/td> 265K
代理商: RX78K4
CHAPTER 2 BASIC FUNCTIONS OF RX78K/IV
14
2.3.2
Semaphore
A semaphore is used to mutually exclude tasks. The semaphore is a measurement that can check whether
currently usable resources exist, or manage the number of resources.
The number of requested resources of the wait manipulation (P) and signal manipulation (V) instructions for a
semaphore is fixed to 1.
If a task needs a resource, it performs resource acquisition manipulation (P instruction) by issuing system call
“wai_sem”, “preq_sem”. If the number of resources is 1 or more, the number of resources of the semaphore is
decremented by one.
If the number of resources is 0, the resource requesting task is placed in the WAIT state (wai_sem), or if the task
is not placed in the WAIT state, an error code is returned (preq_sem). If the task does not need the resource any
more, it executes resource return manipulation (V instruction) by issuing system call “sig_sem”. As a consequence,
the number of resources of the semaphore is incremented by one. If there are tasks waiting for a resource at this
time, the task first placed in the WAIT state is released. A task waits for a semaphore on a FIF0 basis only.
相關(guān)PDF資料
PDF描述
RXB06150W TRANSISTOR | BJT | NPN | 15V V(BR)CEO | FO-91VAR
RXB12350Y Bipolar NPN UHF/Microwave Transisitor
RXE005 Poly Switch PTC DEVICES
RXE010S Poly Switch PTC DEVICES
RXE025 MULTISICHERUNG RXE 0.25A
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
RX-7P 制造商:SUMIDA 制造商全稱:Sumida Corporation 功能描述:POWER INDUCTORS
RX7P-NP-101K 制造商:SUMIDA 制造商全稱:Sumida Corporation 功能描述:POWER INDUCTORS
RX7P-NP-102K 制造商:SUMIDA 制造商全稱:Sumida Corporation 功能描述:POWER INDUCTORS
RX7P-NP-121K 制造商:SUMIDA 制造商全稱:Sumida Corporation 功能描述:POWER INDUCTORS
RX7P-NP-122K 制造商:SUMIDA 制造商全稱:Sumida Corporation 功能描述:POWER INDUCTORS