LuSkywalker
RT-Thread IPC
Try
HackMD
LuSkywalker
·
Follow
Last edited by
LuSkywalker
on
Oct 18, 2019
Linked with GitHub
Contributed by
Comments
Feedback
Log in to edit or delete your comments and be notified of replies.
Sign up
Already have an account? Log in
There is no comment
Select some text and then click Comment, or simply add a comment to this page from below to start a discussion.
Discard
Send
RT-Thread IPC
兩個 thread 要溝通的方式,是透過共享的記憶體來完成;而如果此記憶體沒有排他性,這個記憶體有可能會不同步。
因此進入一塊共享的記憶體一次只允許一個 thread 來使用,這樣即可保證其資料的一致性
進入此共享記憶體則叫做
critical region
RT-Thread 利用 7 種方式來完成同步:關閉中斷、scheduler lock、semaphore、互斥鎖、事件、mail box 及 message
同步
IPC
關閉中斷
Scheduler Lock
Semaphore
互斥鎖 Mutex
事件 Event
通信
Mail Box
Message Queue
RT-Thread IPC
同步
通信
Expand all
Back to top
Go to bottom
RT-Thread IPC
同步
通信
Expand all
Back to top
Go to bottom
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up
Comment