[so] [tema2][win] Sleep

Bogdan Sass bogdan.sass at catc.ro
Mon Apr 13 23:07:55 EEST 2009


    Pentru implementarea comenzii de sleep pe windows, am folosit Sleep().

    Totusi, am niste probleme la rularea testelor. De exemplu, la testul 
5, clientul care ar trebui sa doarma 50ms iese din sleep inainte ca al 
doilea client sa porneasca:

Administrator at rogue:/cygdrive/z/Share/so-win/teste$ ./run_test.sh 5
Running test
1c1
< picasso albertina philippine ashlee sofia sharleen june
---
 > albertina picasso ashlee philippine sharleen sofia june

    Daca maresc delay-ul initial la 100ms (lasand GAP la 200ms), testul 
trece cam la 4 incercari din 5.

    Intrebarea este: ce as putea sa fac pentru a evita problema? Exista 
o alternativa la Sleep() care sa fie mai... determinista?

    Multumesc,

-- 
Bogdan Sass
CCAI,CCSP,JNCIA-ER,CCIE #22221 (RS)
Information Systems Security Professional
"Curiosity was framed - ignorance killed the cat"

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3287 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://cursuri.cs.pub.ro/pipermail/so/attachments/20090413/8f9d93a8/attachment-0001.bin>


More information about the so mailing list