How to allocate memory for Threads?

Hello,

BR, Jan