Are the sched_choose() or tdq_choose() functions called after returning from an interrupt?

Stefan Andritoiu stefan.andritoiu at gmail.com
Fri Jun 12 07:50:13 UTC 2015


Hello,

When returning from an interrupt, does it switch directly the thread
that was interrupted? Or is the scheduler called to choose a thread to
run (most probable the thread that was interrupted)?

More specifically, are the sched_choose() or tdq_choose() functions
called after returning from an IPI?

Does an interrupt have it's own thread, or does it run in the context
of the interrupted thread as in Linux?

Thank you,
Stefan


More information about the freebsd-hackers mailing list