I am currently working with RTOS, their I have Time Tick Value = 10 mSec
and Number of concurrent running tasks = 10
.
Now my question is, What should be my Single Thread Time (quantum)?
I think, Single Thread Time = Time Tick Value / Number of concurrent running tasks
but I am not sure. Please correct me if I am making any mistake here.
Also what are the factors that were responsible for change-in Single Thread Time?
TERMINOLOGIES:
Time Tick Value: The available CPU time is divided into time slices and the RTX kernel assigns a time slice to each task (default time slice is set to 10 ms).
Single Thread Time is the time slice taken by one thread in round robbin scheduling if their are total 10 tasks (threads).
Number of concurrent running tasks always remain constant. It will not cover thread waiting time.
What I wanna know is, whether 10 mSec time slice given to single thread or it gets divide again into 10 parts for 10 concurrent running threads (Consider I am using round robbin scheduling).