allocate some memory before creating a thread: BINGO!