# TaskConfig
## **Overview**
**Related Modules:**
[Samgr](Samgr.md)
**Description:**
Defines task configurations for a service.
This structure defines task configurations for a service, including the task priority, stack size, queue size, task type, and shared task ID.
## **Summary**
## Data Fields
## **Details**
## **Field Documentation**
## level
```
int16 TaskConfig::level
```
**Description:**
ID of a multi-service sharing task. For details about the level definition, see [SpecifyTag](Samgr.md#gae9c7eed07272a46851d61e646b6e86d5).
## priority
```
int16 TaskConfig::priority
```
**Description:**
Task priority. For details about the definition of priority, see [TaskPriority](Samgr.md#gaef69bbb3353ea484414c3bbaf8ec362b).
## queueSize
```
uint16 TaskConfig::queueSize
```
**Description:**
Size of a task queue
## stackSize
```
uint16 TaskConfig::stackSize
```
**Description:**
Size of a task stack
## taskFlags
```
uint8 TaskConfig::taskFlags
```
**Description:**
Task type. For details about the taskFlags definition, see [TaskType](Samgr.md#gab265648f2dbef93878ad8c383712b43a).