Article View: borland.public.jbuilder.java.language
Article #15836How to let the main application sleep ?
From: Luigi Fonti
Date: Thu, 22 Apr 1999 00:00
Date: Thu, 22 Apr 1999 00:00
6 lines
802 bytes
802 bytes
In a thread, you can use sleep(millisecs) or wait(millisecs) to suspend the activity. But, how can you force the main application to sleep for a given time ? The compiler doesn't allow calling these methods in the main application: you can use them only in a trhead. Luigi Fonti.
Technical Details
Message-ID:
<371F06EF.1C2628DE@infn.it>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,af16e2ac36663003,start X-Google-Attributes: gidf74b3,public From: Luigi Fonti <fonti@infn.it> Subject: How to let the main application sleep ? Date: 1999/04/22 Message-ID: <371F06EF.1C2628DE@infn.it> X-Deja-AN: 469509751 Content-Transfer-Encoding: 7bit X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Istituto Nazionale di Fisica Nucleare Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language