Funkcje | |
class IPC::Lock::lock_t | lock_scheduler ("scheduler") |
int | choose_high () |
int | choose_next_thread () |
the scheduler's part in C | |
Zmienne | |
thread_t volatile * | current_thread |
bool | multitasking_running = false |
volatile uint32 | time_slices = 0 |
daje pojecie, jak duzo zmian watku nastapilo | |
const uint32 | SCHEDULER_FREQUENCY = 2048 |
class IPC::Lock::lock_t | lock_scheduler |
int Thread::Scheduler::choose_high | ( | ) |
Definicja w linii 456 pliku scheduler.cpp.
Odwołuje się do bli_dt, EFAIL, ESUCCESS, Thread::i, NULL, Thread::THREAD_QUEUES, Thread::threads_queue i Thread::unqueue_thread().
Odwołania w choose_next_thread().
int Thread::Scheduler::choose_next_thread | ( | ) |
the scheduler's part in C
Definicja w linii 488 pliku scheduler.cpp.
Odwołuje się do choose_high(), Memory::Pager::memtree::cr3, EFAIL, Thread::enqueue_thread(), ESUCCESS, Thread::IdleThreadHandle, Thread::lock_queues, lock_scheduler, lock_system, IPC::Lock::lock_t::locked(), Thread::process_t::mem, multitasking_running, Thread::thread_t::priority, Thread::thread_t::proc, Thread::thread_t::running_time, Thread::thread_t::state, Thread::TH_ACTIVE, Thread::TH_BUSY, Thread::TH_IDLE, Thread::threads_queue, time_slices, Thread::unqueue_thread(), Arch::x86::RTC::up_time i Thread::thread_t::work_time.
class IPC::Lock::lock_t Thread::Scheduler::lock_scheduler | ( | "scheduler" | ) |
thread_t volatile* Thread::Scheduler::current_thread |
Definicja w linii 88 pliku context.cpp.
Odwołania w Thread::awake(), choose_next_thread(), Thread::init() i Thread::sleep().
bool volatile Thread::Scheduler::multitasking_running = false |
Definicja w linii 452 pliku scheduler.cpp.
Odwołania w Thread::awake(), Arch::x86::Interr::chain2(), choose_next_thread(), EnvGet(), IPC::Lock::lock_t::lock(), Memory::Pager::memmove2(), Memory::Pager::PageFaultHandler(), API::v1::req(), sem_wait() i Thread::wake_threads().
const uint32 Thread::Scheduler::SCHEDULER_FREQUENCY = 2048 |