Article View: microsoft.public.fr.vc
Article #7Re: Prb avec SetThreadContext/GetThreadContext
From: Vincent Burel
Date: Wed, 01 Feb 2006 10:33
Date: Wed, 01 Feb 2006 10:33
38 lines
2300 bytes
2300 bytes
<halfwolf@free.fr> wrote in message
news:1138787028.355061.139170@g14g2000cwa.googlegroups.com...
>Et voici le code en C utilis� pour provoquer un swap (j'ai 256 Mo de
>m�moire physique) :
[..]
while (1)
{
size_t i;
for (i = 0; i < sz; i += 16 * 1024)
{
p[i] = 't';
}
Sleep(1000);
}
le code ci-dessus ne fait pas grand chose, faite plutot
size_t i,n;
i=0;
while (1)
{
for (n = 0; n < 16 * 1024; i ++) p[i] = 't';
if (i>=sz) i=0;
Sleep(100);
}
et pour vraiment stresser le systeme, lancez en un dizaine.
VB
Technical Details
Message-ID:
<43e08de1$0$19714$8fcfb975@news.wanadoo.fr>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.google.com!news.glorb.com!proxad.net!193.252.118.146.MISMATCH!news.wanadoo.fr!news.wanadoo.fr!not-for-mailReferences:
<dr7ecj$p8o$1@apollon.grec.isp.9tel.net> <43d79c24$0$21351$626a54ce@news.free.fr> <43d7a39a$0$6689$8fcfb975@news.wanadoo.fr> <Xns9756B6557263Ccns2cnsinvalid@212.27.42.133> <43d7b071$0$20138$8fcfb975@news.wanadoo.fr> <erpjLqfIGHA.3904@TK2MSFTNGP10.phx.gbl> <43d87a0d$0$6645$8fcfb975@news.wanadoo.fr> <43d8c3d1$0$18347$8fcfb975@news.wanadoo.fr> <1138704476.705679.81660@g44g2000cwa.googlegroups.com> <43df45d1$0$6657$8fcfb975@news.wanadoo.fr> <1138781732.741458.99210@z14g2000cwz.googlegroups.com> <43e0709f$0$20178$8fcfb975@news.wanadoo.fr> <1138787028.355061.139170@g14g2000cwa.googlegroups.com>Show Full Headers
Complete Article Headers
X-Google-Thread: f5082,a64b7cf201f73755 X-Google-Thread: 1053e6,a64b7cf201f73755 X-Google-Attributes: gidf5082,gid1053e6,public X-Google-Language: FRENCH,ASCII Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.google.com!news.glorb.com!proxad.net!193.252.118.146.MISMATCH!news.wanadoo.fr!news.wanadoo.fr!not-for-mail Reply-To: "Vincent Burel" <vincent.burel@nospam.wanadoo.fr> From: "Vincent Burel" <vincent.burel@nospam.wanadoo.fr> Newsgroups: microsoft.public.fr.vc,fr.comp.os.ms-windows.programmation References: <dr7ecj$p8o$1@apollon.grec.isp.9tel.net> <43d79c24$0$21351$626a54ce@news.free.fr> <43d7a39a$0$6689$8fcfb975@news.wanadoo.fr> <Xns9756B6557263Ccns2cnsinvalid@212.27.42.133> <43d7b071$0$20138$8fcfb975@news.wanadoo.fr> <erpjLqfIGHA.3904@TK2MSFTNGP10.phx.gbl> <43d87a0d$0$6645$8fcfb975@news.wanadoo.fr> <43d8c3d1$0$18347$8fcfb975@news.wanadoo.fr> <1138704476.705679.81660@g44g2000cwa.googlegroups.com> <43df45d1$0$6657$8fcfb975@news.wanadoo.fr> <1138781732.741458.99210@z14g2000cwz.googlegroups.com> <43e0709f$0$20178$8fcfb975@news.wanadoo.fr> <1138787028.355061.139170@g14g2000cwa.googlegroups.com> Subject: Re: Prb avec SetThreadContext/GetThreadContext Date: Wed, 1 Feb 2006 11:33:12 +0100 Organization: AMSB X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Lines: 41 Message-ID: <43e08de1$0$19714$8fcfb975@news.wanadoo.fr> NNTP-Posting-Date: 01 Feb 2006 11:30:58 CET NNTP-Posting-Host: 82.125.238.93 X-Trace: 1138789858 news.wanadoo.fr 19714 82.125.238.93:1382 X-Complaints-To: abuse@wanadoo.fr