• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Overview of ArkTS Common Library
2
3
4The ArkTS common library provides common basic capabilities, as illustrated in the figure below.
5
6
7**Figure 1** Capabilities of the ArkTS common library
8
9![arkts-commonlibrary](figures/arkts-commonlibrary.png)
10
11
12- Supporting [asynchronous concurrency and multithread concurrency](concurrency-overview.md)
13  - Supports standard JavaScript asynchronous concurrency capabilities such as Promise and async/await.
14  - Uses **TaskPool** to provide a multithread running environment for applications. The use of **TaskPool** helps reduce resource consumption and improve system performance. It also frees you from caring about the lifecycle of thread instances.
15  - Uses **Worker** to support multithread concurrency. The worker thread can communicate with the host thread. You need to proactively create and close a worker thread.
16
17- Providing common capabilities of [adding, deleting, modifying, and querying elements in containers](container-overview.md)
18
19- Constructing and parsing XML files, URLs, and URIs
20  - Extensible Markup Language (XML) is designed for data transmission and storage. The common library provides APIs for [XML generation, parsing, and conversion](xml-overview.md).
21  - [URI](../reference/apis/js-apis-uri.md) is a uniform resource identifier that uniquely identifies a resource. [URL](../reference/apis/js-apis-url.md) is a uniform resource locator that provides a path for locating a resource.
22
23- Supporting common [string and binary data processing](../reference/apis/js-apis-util.md) and [logging](../reference/apis/js-apis-logs.md)
24  - Provides APIs to encode and decode strings.
25  - Provides APIs to encode and decode Base64-encoded bytes.
26  - Supports common rational number operations, including comparing rational numbers and obtaining numerators and denominators.
27  - Provides **Scope** APIs to define the valid range of a field.
28  - Provides APIs to process binary data in scenarios such as TCP flows or file system operations.
29  - Supports logging using the console.
30
31- Providing the capability of [obtaining process information and operating processes](../reference/apis/js-apis-process.md)