Clarification in Solaris Scheduling.

adarsh.cu
Neuling
Neuling
Beiträge: 6
Registriert: 29. Okt 2014 19:18

Clarification in Solaris Scheduling.

Beitrag von adarsh.cu » 22. Nov 2015 01:21

Hi,

In the scheduling slide set (06-scheduling-2015.pdf; slide no 32), it is mentioned that for kernel threads of higher priority, the time slice provided is shorter(reduced). Could someone please explain the reasons for this ? According to my understanding, context switch for kernel threads has a higher overhead, so why should the time slice be lowered eventually leading to more context switches ?

Thanks,
Adarsh

sumitsati
Neuling
Neuling
Beiträge: 8
Registriert: 3. Dez 2014 13:31

Re: Clarification in Solaris Scheduling.

Beitrag von sumitsati » 25. Nov 2015 09:27

Hello,

You are right shorter the time slice more context switch will be there but as per my understanding, also consider that you would like to give higher priority to the task which are mostly or nearly real time. These processes will be needing less CPU time but it should be more frequent. So they should be more often scheduled to fulfill their real time constraint but time slice allotted will decrease so that other real time processes can also fulfill their real time constraint. So it is like if a process has lower priority let him have considerably more CPU time because it will be scheduled less and in contrast if a process is real-time don't give it more CPU time because we want it to run for shorter time but more frequently.

Regards
Sumit

adarsh.cu
Neuling
Neuling
Beiträge: 6
Registriert: 29. Okt 2014 19:18

Re: Clarification in Solaris Scheduling.

Beitrag von adarsh.cu » 1. Dez 2015 13:49

Well, thanks for the clarification. The assumption that the real time processes will need a shorter time (though more frequent) for executing their tasks is not intuitive.

Thanks,
Adarsh

Antworten

Zurück zu „Archiv“