check if the memory is low, from Windows to Unix
- From: kevin.heart@xxxxxxxxx
- Date: 31 Jan 2007 05:40:17 -0800
Hi all,
How to implement such function for Linux/Unix?
/* sample begins*/
#include "windows.h"
....
MEMORYSTATUS stat;
GlobalMemoryStatus(&stat);
result = ((float)stat.dwAvailPageFile / stat.dwTotalPageFile) < 0.1;
....
if (result)
trigger_low_mem_info();
....
/* sample ends */
Thanks!
Kevin
.
- Follow-Ups:
- Re: check if the memory is low, from Windows to Unix
- From: robertwessel2@xxxxxxxxx
- Re: check if the memory is low, from Windows to Unix
- From: santosh
- Re: check if the memory is low, from Windows to Unix
- From: Kenny McCormack
- Re: check if the memory is low, from Windows to Unix
- From: CBFalconer
- Re: check if the memory is low, from Windows to Unix
- From: Lew Pitcher
- Re: check if the memory is low, from Windows to Unix
- Prev by Date: Re: inside scanf [trap rep]
- Next by Date: Trap representation (was: inside scanf [trap rep])
- Previous by thread: why it doesn't work?
- Next by thread: Re: check if the memory is low, from Windows to Unix
- Index(es):