Date: Thu, 11 Jun 2015 16:50:52 +0300 From: Stefan Andritoiu <stefan.andritoiu@gmail.com> To: freebsd-virtualization@freebsd.org Subject: What is the sequence of context switches when an IPI is received? Message-ID: <CAO3d8=b3c6AJaX=yTanZYpe8uV=3qUts8QQQsBXGJRLbneXueg@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Hello, >From the FreeBSD Handbook: "FreeBSD deals with interrupt handlers by giving them their own thread context". >From my understanding when a IPI is received the thread that will run it is placed on the real-time runq, and the scheduler will be invoked to schedule it. So the sequence should be: currently running thread -> scheduler thread -> interrupt handler -> scheduler thread -> previously interrupted thread (if no thread priority change took place inside the interrupt handler) Is this correct? Thank you, Stefan
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAO3d8=b3c6AJaX=yTanZYpe8uV=3qUts8QQQsBXGJRLbneXueg>