mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:28:12 +00:00
Kernel: Rework Process::Priority into ThreadPriority
Scheduling priority is now set at the thread level instead of at the process level. This is a step towards allowing processes to set different priorities for threads. There's no userspace API for that yet, since only the main thread's priority is affected by sched_setparam().
This commit is contained in:
parent
e33bbdb6ba
commit
083c5f8b89
7 changed files with 46 additions and 46 deletions
|
@ -688,7 +688,7 @@ Optional<KBuffer> procfs$all(InodeIdentifier)
|
|||
process_object.add("amount_resident", (u32)process.amount_resident());
|
||||
process_object.add("amount_shared", (u32)process.amount_shared());
|
||||
process_object.add("ticks", process.main_thread().ticks());
|
||||
process_object.add("priority", to_string(process.priority()));
|
||||
process_object.add("priority", to_string(process.main_thread().priority()));
|
||||
process_object.add("syscall_count", process.syscall_count());
|
||||
process_object.add("inode_faults", process.inode_faults());
|
||||
process_object.add("zero_faults", process.zero_faults());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue