1# Overview of Concurrency in Time-Consuming Tasks 2 3 4Time-consuming tasks are those that take a long time to complete. If executed in the UI main thread, they can cause application lag, frame drops, and slow response times. Typical examples include CPU intensive tasks, I/O intensive tasks, and synchronous tasks. 5 6 7Typical service scenarios are as follows: 8 9 10| Service Scenario| Description| Is CPU Intensive Task| Is I/O Intensive Task| Is Synchronous Task| 11| -------- | -------- | -------- | -------- | -------- | 12| Image/Video encoding and decoding| Encoding or decoding images or videos for display.| Yes| Yes| No| 13| Compression and decompression| Decompressing local archives or compressing local files.| Yes| Yes| No| 14| JSON parsing| Serializing and deserializing JSON strings.| Yes| No| No| 15| Model computation| Performing data analysis using models.| Yes| No| No| 16| Network download| Downloading resources, images, and files via intensive network requests.| No| Yes| No| 17| Database operations| Saving data like chat records, page layouts, or music lists to the database, or reading from the database on application restart.| No| Yes| No| 18