f9-kernel icon indicating copy to clipboard operation
f9-kernel copied to clipboard

sched-rr: A round-robin scheduler for normal thread

Open louisom opened this issue 9 years ago • 0 comments

This is a round-robin scheduler implement for normal thread (user-thread) create by pager or pthread lib, and using timeslice, we can prevent user-space thread starvation trigger by busy loop.

This scheduler only schedling user thread create by ipc "thread start protocal".

Default timeslice is 4096 ticks for now.

Other trivial change:

  • Update defconfing for all board
  • Add sched-rr into Makefile
  • Add new config in kernel/Kconfig for setting thread timeslice

louisom avatar Oct 10 '16 11:10 louisom