Get the latest tech news
ArduinoOS (2017)
ArduinoOS - An Operating System for Arduino. Contribute to DrBubble/ArduinoOS development by creating an account on GitHub.
In order to set the stack space use InitTaskWithStackSize or InitTaskWithStackSizeAndArgument when creating a new thread. Keep in mind that this is not recommended for dying threads since the use of many different stack sizes can lead to stronger memory fragmentation. Keep in mind that will return a wrong value if you defined a tick period that is not divisible through 1000 (1 ms).
Or read this on Hacker News