|
osThreadDef(thread1, osPriorityNormal, 1, 0); //thread definition structure
The thread structure requires us to define the name of the thread function, its
thread priority, the number of instances of the thread that will be created, and its
stack size. We will look at these parameters in more detail later. Once the thread
structure has been defined the thread can be created using the osThreadCreate()
API call. Then the thread is created from within the application code, this is often
the within the main thread but can be at any point in the code.
请问,这个the number of instances of the thread是指什么?stack size ? |
|