This schedular is for the Arduino Due and Arduino Zero. Each task has its own stack.
When using millis() to do multiple things, the same stack is used. It is an efficient way for the Arduino Uno.
Using millis() is explained in the BlinkWithoutDelay example and Nick Gammon has a tutorial about it.