rcore-task-manage 0.0.0

Manages tasks and maintain relationships between them
Documentation
  • Coverage
  • 100%
    11 out of 11 items documented0 out of 0 items with examples
  • Size
  • Source code size: 22.33 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 374.44 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 8s Average build duration of successful builds.
  • all releases: 8s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • zflcs

任务管理

Latest version Documentation license

事先申明:对于 feature 的使用不太熟悉,所以代码不是很优雅

任务 id 类型,自增不回收,任务对象之间的关系通过 id 类型来实现

  • ProcId
  • ThreadId
  • CoroId

任务对象管理 manage trait,对标数据库增删改查操作

  • insert
  • delete
  • get_mut

任务调度 schedule trait,队列中保存需要调度的任务 Id

  • add:任务进入调度队列
  • fetch:从调度队列中取出一个任务

封装任务之间的关系,使得 PCBTCB 内部更加简洁

  • ProcRel:进程与其子进程之间的关系
  • ProcThreadRel:进程、子进程以及它地址空间内的线程之间的关系