[Python-Dev] mlockall() in Python? (original) (raw)
Evgeni Golov sargentd at die-welt.net
Mon Nov 24 01:44:43 CET 2008
- Previous message: [Python-Dev] Redirecting warnings.showwarning to logging
- Next message: [Python-Dev] mlockall() in Python?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi,
I'd like to write a small daemon in Python, which should never be swapped out (on Linux, this daemon will be Linux specific, so no need in a platform-independent solution).
In C I'd do: #include <sys/mman.h> mlockall(MCL_FUTURE); //do stuff here munlockall();
Is there anything similar in Python?
TIA & kind regards Evgeni Golov
- Previous message: [Python-Dev] Redirecting warnings.showwarning to logging
- Next message: [Python-Dev] mlockall() in Python?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]