schedule() schedule() is the core function of linux kernel scheduler. Let's have a look at how it works.