[SO][TEMA 2] Sleep
Iulian Moraru
iulian at gmail.com
Sun Nov 12 11:23:56 EET 2006
Foloseste cu incredere Sleep.
In Windows & semnifica o executie secventiala. Daca dai comanda
notepad o sa observi ca
nu iti blocheaza consola (notepad nu e console application).
On 11/12/06, Costin Boldisor <costinb at rdslink.ro> wrote:
>
>
>
>
> 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 J
> _______________________________________________
> so mailing list
> so at cursuri.cs.pub.ro
> http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so
>
>
>
More information about the so
mailing list