I want to make test application which shows round-robin scheduling.
i created three tasks.
xTaskCreate( vErrorChecks, "Task1", mainPRINT_STACK_SIZE, NULL, 5, &xHandle );
xTaskCreate( vErrorChecks1, "Task2", mainPRINT_STACK_SIZE, NULL, 5, &xHandle1 );
xTaskCreate( vErrorChecks2, "Task3", mainPRINT_STACK_SIZE, NULL, 5, &xHandle2 );
static void vErrorChecks( void *pvParameters )
for( ;; )
for(i=0; i<1000; i++)
printf("i am in task1\n");
vTaskDelay( ( portTickType ) 10 );
other two task have same code in their entry functions.
But CPU is not sharing same time for all three tasks.
Can anyone suggest what should i do? if anyone have code then please send on my email id.
Thanks in advance.