[SO][TEMA 2] Sleep

Costin Boldisor costinb at rdslink.ro
Sun Nov 12 11:11:59 EET 2006


Cu ce metoda ar trebui facut sleep in programul client?
 
Am incercat metoda Sleep(ms) si se intampla ceva ciudat: 
daca rulez (in win)  "client s 2000 & notepad" mi se deschide notepadul
dupa
2 secunde.
Daca rulez "notepad & notepad" mi se deschid evident simultan doua
notepad desi
primul nu a fost inchis.
 
Sleep() adoarme "current Thread" conform MSDN dar care este in acest caz
current Thread?
 
PS: Se poate fenta cu un CreateProcess / WaitForSingleObject dar as fi
preferat Sleep :-)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cursuri.cs.pub.ro/pipermail/so/attachments/20061112/c2cf5ad3/attachment.htm


More information about the so mailing list