scheduler: use a linked list for threads in a process instead of a table

This commit is contained in:
Matheus
2024-05-29 12:55:10 -03:00
parent 5f7791cd08
commit 9260c8cb96
6 changed files with 95 additions and 98 deletions
+2 -1
View File
@@ -46,7 +46,8 @@ syscallret_t syscall_fork(context_t *ctx) {
nproc->umask = _cpu()->thread->proc->umask;
nproc->root = sched_getroot();
nproc->cwd = sched_getcwd();
nproc->threads[0] = nthread;
nproc->threadlist = nthread;
nthread->procnext = NULL;
ARCH_CONTEXT_THREADSAVE(nthread, ctx);