我要评分
获取效率
正确性
完整性
易理解

Library Function Description

HTL is a user-level thread library built on kernel-mode threads. It is used to solve the problem that application performance deteriorates and the system resources are insufficient when a large number of kernel-mode threads are used, especially when the performance is extremely low in nested parallel scenarios. This library improves concurrency and performance while reducing resource usage.

HTL is designed for the Kunpeng 920 processor and supports two concurrent development modes:

  1. HTL-PThreads

    HTL provides interfaces whose semantics is similar to that of POSIX threads, or PThreads, so as to facilitate switches from a common PThreads multi-thread application to HTL.

  2. HTL-OpenMP

    HTL provides thread framework development interfaces as the thread implementation of BiSheng OpenMP, or BiSheng BOLT. When the BiSheng BOLT is running, the OpenMP application is smoothly replaced. For details about how to switch from a common OpenMP application to a BiSheng BOLT application, see BiSheng Compiler User Guide.

The HTL-PThreads and HTL-OpenMP modes cannot be used together.