Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Jun 2015 10:50:11 +0300
From:      Stefan Andritoiu <stefan.andritoiu@gmail.com>
To:        freebsd-hackers@freebsd.org
Subject:   Are the sched_choose() or tdq_choose() functions called after returning from an interrupt?
Message-ID:  <CAO3d8=Zq%2BPma2NRUimPN_Hj0B1Ys6Dpd%2BEgx-og8z5f7A3fk6A@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAO3d8=Zq%2BPma2NRUimPN_Hj0B1Ys6Dpd%2BEgx-og8z5f7A3fk6A>