chapter  8
23 Memory Block Pool Example—Allocating Thread Stacks
Pages 1

Before we define the threads, we need to create the memory block pool and allocate memory for the thread stack. Following is the definition of the block pool, consisting of four blocks of 1,024 bytes each and starting at location 0x500000.