thread scheduling

Soroosh R soroosh100 at ymail.com
Thu Mar 27 14:35:01 UTC 2014


hello,
I'm new to freeBSD. I wanted to change the strategy of thread scheduling in freeBSD according to an extra variable added to sched_ule.c but now I don't know which file should be modified to choose thread with highest priority according to new strategy. both "tdq_runq_add" function in sys/kern/sched_ule.c and "runq_choose" function in sys/kern/kern_switch.c are responsible for this job according to their documentation but what is the difference between them and which one should be modified?
---
the attached .c file contains both functions.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: compare.c
Type: application/octet-stream
Size: 3109 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20140327/330ec982/attachment.obj>


More information about the freebsd-questions mailing list