this is a task1 working !CPU=0 %
this is a task2 working !CPU=0 %
this is a task1 working !CPU=0 %
this is a task2 working !CPU=0 %
this is a task1 working !CPU=0 %
this is a task2 working !CPU=0 %
this is a task1 working !CPU=0 %
this is a task2 working !CPU=0 %
this is a task1 working !CPU=0 %
this is a task2 working !CPU=0 %
this is a task1 working !CPU=0 %
this is a task2 working !CPU=0 %
this is a task1 working !CPU=0 %
this is a task2 working !CPU=0 %
this is a task1 working !CPU=0 %
为什么我获取的CPU利用率都是 0
RAW_CONFIG_CPU_TASK =1了已经。
RAW_VOID task1(RAW_VOID *arg1)
{
uint8_t t1[50];
sprintf(t1,"this is a task1 working !CPU=%d %%\n",cpu_usuage_max);
for(;;)
{
raw_mutex_get(&uart1_mutex,RAW_WAIT_FOREVER);
HAL_UART_Transmit(&huart1,t1,(uint16_t)strlen((const char *)t1),10);
raw_mutex_put(&uart1_mutex);
raw_sleep(10);
}
}