🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #15857

Re: How to let the main application sleep ?

#15857
From: Ben Starr
Date: Fri, 23 Apr 1999 00:00
16 lines
1249 bytes
Could you just have a single block in your main method which creates a
thread which is essentially your main program (ie: it contains all the
program logic). Don't know if this is a good idea...

Ben Starr
BenS@commonpurpose.org.uk

Luigi Fonti wrote in message <371F06EF.1C2628DE@infn.it>...
>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: <924858745.5369.0.nnrp-13.c3add604@news.demon.co.uk>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <371F06EF.1C2628DE@infn.it>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,af16e2ac36663003
X-Google-Attributes: gidf74b3,public
From: "Ben Starr" <BenS@commonpurpose.org.uk>
Subject: Re: How to let the main application sleep ?
Date: 1999/04/23
Message-ID: <924858745.5369.0.nnrp-13.c3add604@news.demon.co.uk>
X-Deja-AN: 469909341
X-NNTP-Posting-Host: [195.173.214.4]:195.173.214.4
References: <371F06EF.1C2628DE@infn.it>
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
X-Complaints-To: abuse@demon.net
X-Trace: news.demon.co.uk 924858745 nnrp-13:5369 NO-IDENT [195.173.214.4]:195.173.214.4
Newsgroups: borland.public.jbuilder.java.language