You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
# base 下的代码阅读
|
|
|
|
|
|
|
|
|
|
根据官方的README.md,kernel/base下的文件主要为**基础内核包括调度、内存等模块**
|
|
|
|
|
|
|
|
|
|
# 1. brief intro
|
|
|
|
|
|
|
|
|
|
OpenHarmony liteos 的进程实现方式与 linux 类似,都是通过父进程和子进程的一系列操作来达到实现一些功能的目的.
|
|
|
|
|
|
|
|
|
|
## 1.1 描述各个子功能
|
|
|
|
|
|
|
|
|
|
* los_bitmap.c 主要提供一些位操作
|
|
|
|
|
* los_info.c 提供一些基本的方法来对进程的信息等内容进行操作
|
|
|
|
|
* los_process.c 提供对于进程操作的方法包括创建切换等..
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# 2. natural expression of requirement of software
|
|
|
|
|
|
|
|
|
|
作为操作系统当中的子系统,以软件的角度来看进程管理:
|
|
|
|
|
|
|
|
|
|
## 2.1 一个完备的进程管理系统应当具备
|
|
|
|
|
|
|
|
|
|
### (1) 进程调度
|
|
|
|
|
|
|
|
|
|
鸿蒙内核的进程采用抢占式调度机制,支持时间片轮转调度方式和FIFO调度机制
|
|
|
|
|
|
|
|
|
|
### (2) 进程创建
|
|
|
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### (3) 进程回收
|
|
|
|
|
### (4)
|
|
|
|
|
### (5)
|
|
|
|
|
### (6)
|
|
|
|
|
|
|
|
|
|
# 3. user case diagram and user case description
|
|
|
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# 4. software architecture
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|

|