When to lock page under WinNT?

Werner Koch wk at gnupg.org
Thu Nov 4 09:21:35 CET 2004


On Sun, 31 Oct 2004 23:48:10 +0800, Zuxy  said:

>   if (!VirtualLock (addr, len)) {

As said several times:  VirtualLock does not do what you think it
does.  Frankly, according to POSIX, even mlock is not required to avoid
swapping out pages.


Shalom-Salam,

   Werner





More information about the Gnupg-users mailing list