add a new interface to spawn threads spawn2 offers the possibility to define the stack size of the new thread