1# Concurrent Resident Task Scenarios
2
3During application service implementation, for some resident task scenarios that take a long time (more than 3 minutes) and have a small number of concurrent tasks, use **Worker** to run the time-consuming logic in the background thread, so as not to block the main thread or cause frame loss and lag that affect user experience.
4
5A resident task refers to a task that takes a longer time than a transient task. The lifecycle of a resident task may be the same as that of the UI main thread. Compared with long-term tasks, resident tasks tend to be bound to threads and run for a longer time (for example, more than 3 minutes).
6
7Common service scenarios of resident tasks are as follows:
8
9| Common Service Scenario| Description|
10| -------- | -------- |
11| Game platform scenario| Enables the child thread as the main logic thread of the game service. The UI thread is only responsible for rendering.|
12| Time-consuming task scenario| Long-time model prediction tasks or hardware tests in the background|
13