Re: check if the memory is low, from Windows to Unix
- From: gazelle@xxxxxxxxxxxxxxxxxxxxx (Kenny McCormack)
- Date: Wed, 31 Jan 2007 14:36:14 +0000 (UTC)
In article <1170250816.939897.103630@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
<kevin.heart@xxxxxxxxx> wrote:
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;
...
Off topic. Not portable. Cant discuss it here. Blah, blah, blah.
Useful clc-related links:
http://en.wikipedia.org/wiki/Aspergers
http://en.wikipedia.org/wiki/Clique
http://en.wikipedia.org/wiki/C_programming_language
.
- References:
- check if the memory is low, from Windows to Unix
- From: kevin . heart
- check if the memory is low, from Windows to Unix
- Prev by Date: Re: check if the memory is low, from Windows to Unix
- Next by Date: Re: How to improve this sort?
- Previous by thread: Re: check if the memory is low, from Windows to Unix
- Next by thread: Re: check if the memory is low, from Windows to Unix
- Index(es):
Relevant Pages
|