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
9cdf9aa71b
commit
e27ef97682
@ -108,7 +108,7 @@ pub fn createThreadControlBlock(allocator: *pmm.FrameAllocator) !*ThreadControlB
|
||||
thread.mapper = null;
|
||||
thread.regs = std.mem.zeroes(@TypeOf(thread.regs));
|
||||
thread.state = .Inactive;
|
||||
thread.user_priority = 0;
|
||||
thread.user_priority = 127;
|
||||
|
||||
return thread;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user