Книга: Microsoft Windows Embedded CE 6.0 Exam Preparation Kit

Demand Paging

Demand Paging

Demand paging facilitates memory sharing between multiple processes on devices with limited RAM capacity. When demand paging is enabled, Windows Embedded CE discards and removes memory pages from active processes under low-memory conditions. However, to keep the code of all active processes in memory, disable demand paging for the entire operating system or for a specific module, such as a dynamic-link library (DLL) or device driver.

You can disable demand paging by using the following methods:

Operating system Edit the Config.bib file and set the ROMFLAGS option in the CONFIG section.

DLLs Use the LoadDriver function instead of the LoadLibrary function to load the DLL into memory.

Device drivers Add the DEVFLAGS_LOADLIBRARY flag to the Flags registry entry for the driver. This flag causes Device Manager to use the LoadLibrary function instead of the LoadDriver function to load the driver.

Windows Embedded CE allocates and uses memory as usual, but does not discard it automatically when you disable demand paging.

Оглавление книги

Оглавление статьи/книги

Генерация: 1.919. Запросов К БД/Cache: 3 / 1
поделиться
Вверх Вниз