Crates.io | rcore-task-manage |
lib.rs | rcore-task-manage |
version | 0.0.0 |
source | src |
created_at | 2022-11-04 03:48:57.951052 |
updated_at | 2022-11-04 03:48:57.951052 |
description | Manages tasks and maintain relationships between them |
homepage | |
repository | https://github.com/YdrMaster/rCore-Tutorial-in-single-workspace/task-manage |
max_upload_size | |
id | 704806 |
size | 22,339 |
feature
的使用不太熟悉,所以代码不是很优雅ProcId
ThreadId
CoroId
manage trait
,对标数据库增删改查操作insert
delete
get_mut
schedule trait
,队列中保存需要调度的任务 Id
add
:任务进入调度队列fetch
:从调度队列中取出一个任务PCB
、TCB
内部更加简洁ProcRel
:进程与其子进程之间的关系
ProcThreadRel
:进程、子进程以及它地址空间内的线程之间的关系