VirtualBox

Changes between Initial Version and Version 1 of Ticket #19845, comment 6


Ignore:
Timestamp:
Sep 3, 2020 8:28:21 AM (4 years ago)
Author:
Frank Batschulat (Oracle)

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #19845, comment 6

    initial v1  
    2727                 U sched_setscheduler
    2828}}}
     29
     30sched_setscheduler() is a problem in:
     31trunk/src/VBox/Runtime/r0drv/linux/thread2-r0drv-linux.c
     32{{{
     33thread2-r0drv-linux.c rtThreadNativeSetPriority  95 sched_setscheduler(current, iSchedClass, &Param);
     34}}}
     35
     36where we attempt to set scheduling priorities for our kernel threads. We do this
     37for 2 scheduling classes, SCHED_NORMAL and SCHED_FIFO.
     38
     39For the SCHED_FIFO case in this code, we should use instead the new sched_set_fifo() and sched_set_fifo_low() interfaces. However in general SCHED_FIFO is discouraged
     40and we probably should drop that in the longer run.
     41For the rest of the cases of SCHED_NORMAL we should probably use sched_set_normal()
     42and set a nice value instead of the current priority for sched_setscheduler().

© 2023 Oracle
ContactPrivacy policyTerms of Use