增加进程的调度policy属性 (#63)

* 添加进程的policy属性

* update

* 修改设置进程策略

* 删除重复定义

* 更正注释及格式

Co-authored-by: longjin <longjin@RinGoTek.cn>
This commit is contained in:
kong
2022-10-21 20:38:01 +08:00
committed by GitHub
parent c2fa7bf46d
commit ed178b560b
5 changed files with 170 additions and 72 deletions

View File

@ -45,7 +45,8 @@
.parent_pcb = &proc, \
.exit_code = 0, \
.wait_child_proc_exit = 0, \
.worker_private = NULL \
.worker_private = NULL, \
.policy = SCHED_NORMAL \
}
/**
@ -183,7 +184,7 @@ void process_exit_notify();
* @return int
*/
pid_t kernel_thread(int (*fn)(void*), void* arg, unsigned long flags);
pid_t kernel_thread(int (*fn)(void *), void *arg, unsigned long flags);
int process_fd_alloc(struct vfs_file_t *file);