发现和例程给的不一样
thread 1 is running ,thread 1 count = 0
thread 1 is running ,thread 1 count = 5
thread 1 is runnimsh >ng ,thread 1 count = 10
thread 1 is running ,thread 1 count = 15
thread 1 is running ,thread 1 thread 2 is running ,thread 2 count = 0
thread 2 icount = 5
thread 1 is running ,thread 1 count = 25
thread 1 is running ,thread 1 count = 30
thread s running ,thread 1 count = 35thread 2 is running ,t2 is running ,thread 2 count = 10
thread 1 is running ,thread 1 count = 40
thread 1 is running ,threahread 1 count = 45
thread 2 is running ,thread 2 cod 2 count = 15
thread 1 is running ,thread 1 count = 50
thread 1 is running ,thread 1 count = 55
如上图是这个样子 检查了线程的优先级和tshell一样是20 怎么回事呢
你可以把tshell的优先级再调低一点,或者两个线程的优先级都大于tshell
谢谢您的回复 我全部提高以后就变成先执行完进程一然后执行完进程二了 貌似时间片并没有起作用 tshell有什么需要设置的吗 我是cubemx设置的只初始化了一个RCC 麻烦您了 感谢帮助