I am doing a round robin simulation on my dual core PC running Windows 10.
So I am using the windows port.
I am trying to create a task1, then in task1, I create a short task task2 with same priority, then I call taskyield() to give up the processor.
based on my understanding of the sheduling behaviour, task2 should always run after I call taskyield(), when task2 is completed, task1 will be schedule, if it is in a single processor environment.
However, what I experience is that sometimes task2 will be scheduled after taskyield() is called in task1, sometimes task1 will be running again after taskyield() is called.
May I check with you if the simulation version will utilized the dual processors when schedule the tasks with same priority?
Thanks & Regards