-3
$\begingroup$

my question would be how can I see which method is used to distribute the computing time to the following threads.

void High_Thread(void const *argument)
{
   while(1)
   {
     GPIOE->DOUT_BYTE1=0xFF;
   }
}
void Low_Thread(void const *argument)
{
   while(1)
   {
     GPIOE->DOUT_BYTE1=0x00;
   }
}
osThreadDef(High_Thread, osPriorityNormal,1,0);
osThreadDef(Low_Thread, osPriorityNormal,1,0);
ThreadId_High=osThreadCreate(osThread(High_Thread), NULL);
ThreadId_Low=osThreadCreate(osThread(Low_Thread), NULL);

In this case, is that not a preemptive scheduling procedure because the priorities are changed?

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.