Home All Groups Group Topic Archive Search About
Author
7 Mar 2006 8:01 AM
bokiteam
Hi All,

I am new to vb.net.

I saw a command

Thread.Sleep(1)

My problem is:

sleep who ? or sleep whole app itself ?

VB.net support multi-thread?

BR/
Boki.

Author
7 Mar 2006 9:37 AM
Herfried K. Wagner [MVP]
<bokit***@ms21.hinet.net> schrieb:
> I saw a command
>
> Thread.Sleep(1)
>
> My problem is:
>
> sleep who ? or sleep whole app itself ?

The thread which is calling 'Thread.Sleep'.

> VB.net support multi-thread?

Yes (see class 'Thread').

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
8 Mar 2006 12:37 AM
bokiteam
Got it! Thanks! :)

BR
/Boki.

Herfried K. Wagner [MVP] wrote:
Show quoteHide quote
> <bokit***@ms21.hinet.net> schrieb:
> > I saw a command
> >
> > Thread.Sleep(1)
> >
> > My problem is:
> >
> > sleep who ? or sleep whole app itself ?
>
> The thread which is calling 'Thread.Sleep'.
>
> > VB.net support multi-thread?
>
> Yes (see class 'Thread').
>
> --
>  M S   Herfried K. Wagner
> M V P  <URL:http://dotnet.mvps.org/>
>  V B   <URL:http://classicvb.org/petition/>