On Sun 18-05-14 12:15:48, Hugh Dickins wrote:
> On Sun, 18 May 2014, Branimir Maksimovic wrote:
>
> > Ia hev discovered this accidentaly when tried to see how oom killer
> > works. Program is this:
> >
> > #include
> > #include
> > #include
> > #include
> >
> > int counter=0;
> > int main()
On Sun, 18 May 2014, Branimir Maksimovic wrote:
> Ia hev discovered this accidentaly when tried to see how oom killer
> works. Program is this:
>
> #include
> #include
> #include
> #include
>
> int counter=0;
> int main()
> try
> {
> for(;;++counter)
> {
> char* p = new char[1024*102
Ia hev discovered this accidentaly when tried to see how oom killer
works. Program is this:
#include
#include
#include
#include
int counter=0;
int main()
try
{
for(;;++counter)
{
char* p = new char[1024*1024];
memset(p,1,1024*1024);
std::cout< 24000)sleep(100);
}
}catch(co
3 matches
Mail list logo