5.2. Updating The Process Scheduler

schedule() is the Linux process scheduler. When applied, this update will report an informative message in the kernel logs after every 5000 invocations of the scheduler, as shown in Figure 5-3.

Figure 5-3. Expected output of schedule() update.

schedule_v2 called for 5000 times (25000 times total), this time from 3174.