写了一个CC3220SF双线程的程序,一个tcpthread,一个spithread。
请问是否是在tcpthread中调用了sleep函数,tcpthread就会释放当前占用的cpu资源,cpu就会切换到spithread执行吗?如果这样的话,tcpthread想设置延时该怎么办?
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.
写了一个CC3220SF双线程的程序,一个tcpthread,一个spithread。
请问是否是在tcpthread中调用了sleep函数,tcpthread就会释放当前占用的cpu资源,cpu就会切换到spithread执行吗?如果这样的话,tcpthread想设置延时该怎么办?
user6464274 说:写了一个CC3220SF双线程的程序,一个tcpthread,一个spithread。
请问是否是在tcpthread中调用了sleep函数,tcpthread就会释放当前占用的cpu资源,cpu就会切换到spithread执行吗?如果这样的话,tcpthread想设置延时该怎么办?
是的
抢占式的运行方式https://dev.ti.com/tirex/explore/node?node=ADznPZ0t1iqMbLyS3k3ZFA__fc2e6sr__LATEST