最新免费av在线观看,亚洲综合一区成人在线,中文字幕精品无码一区二区三区,中文人妻av高清一区二区,中文字幕乱偷无码av先锋

RX4000V4 Datasheet

  • RX4000V4

  • RX4000(uITRON4.0) Basics User's Manual | User's Manual[02/...

  • 1637.71KB

  • 309頁

  • ETC

掃碼查看芯片數(shù)據(jù)手冊

上傳產(chǎn)品規(guī)格書

PDF預覽

CHAPTER 5 SYNCHRONOUS COMMUNICATION MANAGEMENT
This chapter describes the synchronous communication management performed by the RX4000.
5.1
Overview
In an environment where multiple tasks are executed concurrently (multitasking), the result produced by a certain
task may determine the next task to be executed or affect the processing performed by the subsequent task. In other
words, it may happen that some task execution conditions vary with the processing performed by another task, or that
the processing performed by some tasks is related.
Liaison functions are therefore required between tasks so that task execution will be suspended to await the result
output by another task. These functions are known as synchronization and communication functions, and in the
RX4000 the synchronization and communication functions provided include semaphores, event flags, data queues,
mailboxes, and mutexes. These functions are described in the following sections.
5.2
Semaphores
The elements required to execute tasks are known as resources, which include all the hardware components, such
as the processor, memory, and I/O devices, and software components, such as the files and programs.
Because it is often impossible for multiple tasks to simultaneously use the same resource, a multitasking
environment requires a function to prevent possible resource contention. As a means of realizing the exclusive control
of resources that would prevent this kind of contention, the RX4000 provides non-negative counter-type semaphores.
Semaphores contain counters for controlling the number of resources, and by treating semaphores as abstract
resources, it becomes possible to perform exclusive control between tasks.
5.2.1
Creating semaphores
Semaphores can be created either by issuing the service call (a)cre_sem, or by specifying the static
APICRE_SEM, which performs equivalent processing to (a)cre_sem when the system is initialized.
If (a)cre_sem is issued, the attribute, initial counter value, and maximum counter value (etc.) are stored in the block
corresponding to the ID number that specifies the semaphore control block area secured as an array, and that control
block is then initialized.
The semaphore ID number consists of a unique number of a value 1 or higher. The maximum value that can be
specified is the one defined in the system information table, up to a maximum of 0x7fff numbers. Any value of 0 or
higher can be specified for a semaphore鈥檚 initial counter value, and any value of 1 or higher for the maximum counter
value, but the former cannot exceed the latter. The maximum specifiable value is 0x7ffffff.
46
User鈥檚 Manual U14833EJ2V0UM

RX4000V4相關(guān)型號PDF文件下載

您可能感興趣的PDF文件資料

熱門IC型號推薦

掃碼下載APP,
一鍵連接廣大的電子世界。

在線人工客服

買家服務:
賣家服務:
技術(shù)客服:

0571-85317607

網(wǎng)站技術(shù)支持

13606545031

客服在線時間周一至周五
9:00-17:30

關(guān)注官方微信號,
第一時間獲取資訊。

建議反饋
返回頂部

建議反饋

聯(lián)系人:

聯(lián)系方式:

按住滑塊,拖拽到最右邊
>>
感謝您向阿庫提出的寶貴意見,您的參與是維庫提升服務的動力!意見一經(jīng)采納,將有感恩紅包奉上哦!