Open AlanYiNew opened 7 years ago
As far as I know, there are no options to change the scheduling algorithm in userlevel Click. Do you have a specific problem in mind?
It's not a specific problem. I am trying to have click running on a microkernel with elements in a configuration serparted into different process-like component, so I have to figure out how to implement similar algorithm on the micorkernel. Thanks for your help anyway.
Well if the default behaviour does not suits you, you can hook into lib/routerthread.cc, this is the main loop launching in loop tasks (multiple times), then timers, then selects, and loop back again. What may influence the scheduling is if the tasks of your element return "false" they will not be scheduled anymore on the current loop.
Maybe ScheduleInfo is what you are looking for?
Oh didn't knew about that one... Nice.
Is there an algorithm used for the overall scheduler to scheduled which task to run. but I can't find the relerant code for scheduling task in the system. Is it possible to change the default scheduler when click is run single thread at user level?