Futex Basic Concepts Fast userspace mutex (futex) is a system call capability provided by the kernel. It is a basic component that combines with user-mode lock logic to form a user-mode lock. It is a
阅读全文
openharmony 鸿蒙 kernel-small-basic-trans-semaphore
Semaphore Basic Concepts Semaphore is a mechanism used to implement synchronization between tasks or exclusive access to shared resources. In the semaphore data structure, there is a value indicating
阅读全文
openharmony 鸿蒙 kernel-small-basic-trans-rwlock
RW Lock Basic Concepts Similar to a mutex, a read-write lock (RW lock) can be used to synchronize tasks in the same process. Different from a mutex, an RW lock allows concurrent access for read operat
阅读全文
openharmony 鸿蒙 kernel-small-basic-trans-queue
Queue Basic Concepts A queue, also called a message queue, is a data structure used for communication between tasks. The queue receives messages of unfixed length from tasks or interrupts, and determi
阅读全文
openharmony 鸿蒙 kernel-small-basic-trans-mutex
Mutex Basic Concepts A mutual exclusion (mutex) is a special binary semaphore used for exclusive access to shared resources. When a task holds the mutex, the task obtains the ownership of the mutex. W
阅读全文
openharmony 鸿蒙 kernel-small-basic-trans-event
Event Basic Concepts An event is a communication mechanism used to synchronize tasks. In multi-task environment, synchronization is required between tasks. Events can be used for synchronization in th
阅读全文
openharmony 鸿蒙 kernel-small-basic-time
Time Management Basic Concepts Time management is performed based on the system clock. It provides time-related services for applications. The system clock is generated by the interrupts triggered by
阅读全文
openharmony 鸿蒙 kernel-small-basic-softtimer
Software Timer Basic Concepts The software timer is a software-simulated timer based on system tick interrupts. When the preset tick counter value has elapsed, the user-defined callback will be invoke
阅读全文
开源鸿蒙 Process Management
Process
阅读全文
openharmony 鸿蒙 kernel-small-basic-process-thread
Task Basic Concepts Tasks are the minimum running units that compete for system resources. They can use or wait to use CPUs and use system resources such as memory. They run independently from one ano
阅读全文