I found that schendular can be written in many ways. I am curious to know when should we use malloc I think if we are designing scheduler for 8 bit micro then we should create task statically Because there is less space in the 8 bit microcontroller. If we are using 32 bit micro and we have more memory then we can use malloc function. does this really happen?