MAINSAIL System-Specific User's Guides, Chapter 6

previous   next   top   contents   index   framed top   this page unframed


6. NTPNT Shared Mapped Library and Kernel Support

If bit '4 ($mappedLibraries) of the CONF parameter WIN32BITS is set (see Section 3.2.3), MAINSAIL maps the kernel MODULE and objmod library files with the operating system call MapViewOfFile instead of reading them in with ReadFile. This means that all MAINSAIL processes executing a bootstrap with the $mappedLibraries bit set will share the memory required for the kernel and libraries, thereby conserving operating system memory resources. (Note that the MAINSAIL executable bootstrap is already automatically shared because Windows NT maps executable files.)

Mapping a file for execute access on Windows NT requires mapping it for write access. This means that you cannot map a MAINSAIL library or kernel MODULE that resides on a read-only file system; also, you should not map libraries that might be opened by bootstraps without the $mappedLibraries bit set, since such bootstraps will attempt to open the libraries for exclusive read access. Because of these constraints, XIDAK has chosen not to make mapping the default behavior on NTPNT.


previous   next   top   contents   index   framed top   this page unframed

MAINSAIL System-Specific User's Guides, Chapter 6