setting up the preemptive scheduler
using bool lib