sasikalaswathi wrote on Monday, September 09, 2019:
Can we manually call the schedular to switch to another task before the given time slice happens in a task by dynamically allocating priority inside a task?Is it used anywhere?
sasikalaswathi wrote on Monday, September 09, 2019:
Can we manually call the schedular to switch to another task before the given time slice happens in a task by dynamically allocating priority inside a task?Is it used anywhere?
rtel wrote on Monday, September 09, 2019:
Yes, call taskYIELD(): https://www.freertos.org/a00020.html#taskYIELD
sasikalaswathi wrote on Tuesday, September 10, 2019:
Hi Richard, thanks for the response
What if I Increase the priority of another tasks inside one task, in that case also the scheduler will switch to another task before the given time slice, would’nt it?
sasikalaswathi wrote on Tuesday, September 10, 2019:
Hi Richard, thanks for the response
What if I Increase the priority of another tasks inside one task, in that case also the scheduler will switch to another task before the given time slice, would’nt it?
richard_damon wrote on Tuesday, September 10, 2019:
If you do an action that makes another task a higher priority unblock task, then that operation will also switch to that task. Changing priority of an unblocked task will work, as will doing something that unblocks a higher priority task.
sasikalaswathi wrote on Friday, September 13, 2019:
Hi Richard, thanks for the information