Article View: borland.public.jbuilder.java.language
Article #15627Re: How to let the main application sleep ?
From: Tod Cunningham
Date: Tue, 18 May 1999 00:00
Date: Tue, 18 May 1999 00:00
15 lines
1104 bytes
1104 bytes
The sleep facility is implemented through the Thread object. ie:
Thread.sleep( 1 * 1000 ); // Sleep for 1 second
Note: that the sleep method is static so you don't have to create an
instance of Thread.
Tor Iver Wilhelmsen wrote:
> tfrysinger@earthlink.net (Tad Frysinger) writes:
>
> > Intel is gonna love this...<g>
>
> Busywaiting is very nice if it's cold and you want to use your
> computer as an oven. :-)
Technical Details
Message-ID:
<3741C6D9.E741C791@zenith.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<371F06EF.1C2628DE@infn.it> <37200535.DD0C0830@cruzio.com> <MPG.118f9264c81f98fa9899ce@forums.borland.com> <uk8uwewc5.fsf@sds.no>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,af16e2ac36663003 X-Google-Attributes: gidf74b3,public From: Tod Cunningham <tod.cunningham@zenith.com> Subject: Re: How to let the main application sleep ? Date: 1999/05/18 Message-ID: <3741C6D9.E741C791@zenith.com> X-Deja-AN: 478841526 Content-Transfer-Encoding: 7bit References: <371F06EF.1C2628DE@infn.it> <37200535.DD0C0830@cruzio.com> <MPG.118f9264c81f98fa9899ce@forums.borland.com> <uk8uwewc5.fsf@sds.no> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: http://extra.newsguy.com Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language