Other Parts Discussed in Thread: SYSBIOS
工程是基于sysbios的,核1的算法会计算并更新一个数组,数组放在MSMCSRAM上。然后核2会不断读取这个数组进行计算。请问怎么在核2读取数组的时候暂停核1更新数组,或者在核1更新数组时暂停核2读取数组?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
工程是基于sysbios的,核1的算法会计算并更新一个数组,数组放在MSMCSRAM上。然后核2会不断读取这个数组进行计算。请问怎么在核2读取数组的时候暂停核1更新数组,或者在核1更新数组时暂停核2读取数组?
可以考虑用bios里的semaphore信号量,请看一下下面多核编程手册。
5 Shared Resource Management
https://www.ti.com/lit/an/sprab27b/sprab27b.pdf