openharmony 鸿蒙 time-consuming-task-overview

2025-06-06 浏览 (1)

Overview of Concurrency in Time-Consuming Tasks

Time-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.

The following describes typical service scenarios for time-consuming tasks.

Service ScenarioDescriptionCPU Intensive TaskI/O intensive TaskSynchronous Task
Image/Video encoding and decodingEncoding or decoding images or videos for display.SupportedSupportedNot supported
Compression and decompressionDecompressing local archives or compressing local files.SupportedSupportedNot supported
JSON parsingSerializing and deserializing JSON strings.SupportedNot supportedNot supported
Model computationPerforming data analysis using models.SupportedNot supportedNot supported
Network downloadDownloading resources, images, and files via intensive network requests.Not supportedSupportedNot supported
Database operationsSaving data like chat records, page layouts, or music lists to the database, or reading from the database on application restart.Not supportedSupportedNot supported

你可能感兴趣的鸿蒙文章

harmony 鸿蒙ArkTS

harmony 鸿蒙Configuring arkOptions in build-profile.json5

harmony 鸿蒙Asynchronous Lock

harmony 鸿蒙Ark Bytecode File Format

harmony 鸿蒙Naming Conventions for Ark Bytecode Functions

harmony 鸿蒙Ark Bytecode Fundamentals

harmony 鸿蒙Overview of Ark Bytecode

harmony 鸿蒙Shared Container

harmony 鸿蒙Asynchronous Waiting

harmony 鸿蒙ArkTS Cross-Language Interaction

  • 所属分类: 后端技术
  • 本文标签: 鸿蒙 软件
  • 版权声明: 本文链接 https://seaxiang.com/blog/0klyMB