The Pedigree Project
0.1
|
#include <MemoryPressureKiller.h>
Public Member Functions | |
virtual const String | getMemoryPressureDescription () |
virtual bool | compact () |
Handles killing processes if memory pressure is encountered.
Definition at line 24 of file MemoryPressureKiller.h.
|
virtual |
Called by MemoryPressureManager to request this handler to take action to reduce memory pressure.
Implements MemoryPressureHandler.
Definition at line 32 of file MemoryPressureKiller.cc.
References Dec, Process::getId(), Scheduler::getNumProcesses(), Scheduler::getProcess(), Process::getThread(), Hex, Scheduler::instance(), Subsystem::kill(), and Scheduler::yield().