mirror of
https://github.com/drasko/codezero.git
synced 2026-01-12 19:03:15 +01:00
Pagers kill all children but suspend themselves. Currently not straightforward for a pager to delete its own tcb and quit. It should take all allocator locks without sleeping, remove itself from scheduler queue and then delete itself and quit. This is not so easy now as some allocation locks are mutexes. (Address space lock, ktcb/space allocators etc.) An easier approach would be to have a kernel thread or a superior thread that would delete the pager