🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Thread question

#18091
From: Simon Andersson
Date: Wed, 19 Aug 1998 00:00
29 lines
1483 bytes
Thank you Steve, now it works fine!

/ Simon


Steve Horsley wrote in message <35D941CF.4262@cwcom.co.uk>...
>I'm new to Java, so I could be wrong about this - have a think about it
>though.
>If ayone can confirm what I'm saying, I'd like to know.
>
>With C++Builder, the main() thread is the one that handles all the
>screen updates,
>processing repaint messages etc. when it is idle. If a second thread
>changes
>something that causes a visible change, this change only gets repainted
>once the
>main thread is idle. I found this out the hard way. The secret is to
>make sure
>the main() thread is never involved in any lengthy work - always create
>other
>threads to do the slow work.
>
>I am guessing that maybe the same is true in Java, in which case you
>really want
>a third thread to do your query, leaving the original thread to process
>screen
>repaints etc. while the second thread does pretty animations.
>
>Regards, Steve.
Technical Details
Message-ID: <6renb3$rse1@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <6qc7vq$evf3@forums.borland.com> <35D941CF.4262@cwcom.co.uk>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,ee1311dc64d2e969
X-Google-Attributes: gidf74b3,public
From: "Simon Andersson" <md95-san@nada.kth.se>
Subject: Re: Thread question
Date: 1998/08/19
Message-ID: <6renb3$rse1@forums.borland.com>
X-Deja-AN: 382646979
References: <6qc7vq$evf3@forums.borland.com> <35D941CF.4262@cwcom.co.uk>
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.language