core: Set new threads' priority to 127
This is halfway through the priority range, so user processes can either lower or raise their priority from the default.
This commit is contained in:
parent
9cbb043238
commit
8f6c952331
@ -108,7 +108,7 @@ pub fn createThreadControlBlock(allocator: *pmm.FrameAllocator) !*ThreadControlB
|
|||||||
thread.mapper = null;
|
thread.mapper = null;
|
||||||
thread.regs = std.mem.zeroes(@TypeOf(thread.regs));
|
thread.regs = std.mem.zeroes(@TypeOf(thread.regs));
|
||||||
thread.state = .Inactive;
|
thread.state = .Inactive;
|
||||||
thread.user_priority = 0;
|
thread.user_priority = 127;
|
||||||
|
|
||||||
return thread;
|
return thread;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user