mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-25 19:51:59 +00:00
Kernel: Implement software context switching and Processor structure
Moving certain globals into a new Processor structure for each CPU allows us to eventually run an instance of the scheduler on each CPU.
This commit is contained in:
parent
10407061d2
commit
fb41d89384
Notes:
sideshowbarker
2024-07-19 05:18:13 +09:00
Author: https://github.com/tomuta
Commit: fb41d89384
Pull-request: https://github.com/SerenityOS/serenity/pull/2513
22 changed files with 1002 additions and 513 deletions
|
@ -35,6 +35,7 @@ void SyncTask::spawn()
|
|||
{
|
||||
Thread* syncd_thread = nullptr;
|
||||
Process::create_kernel_process(syncd_thread, "SyncTask", [] {
|
||||
dbg() << "SyncTask is running";
|
||||
for (;;) {
|
||||
VFS::the().sync();
|
||||
Thread::current->sleep(1 * TimeManagement::the().ticks_per_second());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue