This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Need details of time slicing and what is minimum time slice duration in RTX Kernel

Consider 20 tasks ( Ti,T2….T20) having same priority level and consider time slice duration as 10usecond. Now when Task1 get switched to process Task2 then in how much time Task1 will get resumed.

Parents
  • Note that 10us is a very short time slice period.

    For every processor type and for every OS, there will be a need to consume a specific number of instructin cycles for performing a task switch.

    This time will come out of the time slice period since the new task will not be able to run until the OS is done with the task switch.

    With too short time slice perids, all CPU time will go to the task switching and your tasks will not get anything done.

Reply
  • Note that 10us is a very short time slice period.

    For every processor type and for every OS, there will be a need to consume a specific number of instructin cycles for performing a task switch.

    This time will come out of the time slice period since the new task will not be able to run until the OS is done with the task switch.

    With too short time slice perids, all CPU time will go to the task switching and your tasks will not get anything done.

Children