The following are some characteristics of the software interrupt thread:
1. SYS/BIOS system kernel component
2. Generally triggered in the hardware interrupt thread (HWI)
3. 0-31 priority (default 0-15)
4. Unlimited number (memory allowance) Next)
5. It cannot be suspended and must run until the end unless it is preempted.
6. Share the system stack with the hardware interrupt thread.
The following are some characteristics of the task thread:
1. SYS/BIOS system kernel component
2. 0-31 priority (default 0-15, priority 0 is used by idle threads, the lowest priority of the task is 1)
3. Unlimited number (memory allowed)
4. Independent memory stack
5. More advanced scheduling technology
- can be used for waiting for a certain event is suspended
- the task will be interrupted by other higher priority threads
6. The number and status can be dynamically changed while the program is executing
7. The priority can be dynamically modified
The following are some characteristics of idle (background) threads:
1. SYS/BIOS system kernel component
2. Non-real-time thread
3. Will run if and only if no other thread (HWI / SWI / TASK) is running
4. All idle threads run at the same priority
5. Yes Quantity limit
6. Can be preempted by any other thread at any time
7. Default task stack, if the task thread is disabled, use the system stack
8. Run one after another, each idle thread function will be executed from start to end. After all functions are executed, execution starts from the first function, and the cycle starts again.
9. Do not use blocking statements on idle threads.
Unfold ↓