Article View: borland.public.jbuilder.java.language
Article #19508Re: Understanding synchronous vs. asynch events
From: Mark Hunter
Date: Sun, 01 Feb 1998 00:00
Date: Sun, 01 Feb 1998 00:00
28 lines
1776 bytes
1776 bytes
James: thanks for the reply. Guess it's time to get my own copy of Core Java, instead of borrowing one from a colleague. >>By posting, but keeping the current thread running, you are really crossing your fingers and hoping that the current thread keeps its time slice. But the reality is that once the message gets posted, the block is removed from the receiver of the post. So we may or may not get the intended action. The os may decide to keep the current thread running, or may switch to the other.<< I see your point. That wasn't a problem in Win16 because there was no such thing as multi-threading. Is it possible to build a Java app that does not multi-thread? I mean, if I avoid starting new threads myself, and post events to the queue, will the OS still (potentially) break away from my code block and deliver the event to its target before my code block is finished? I'm trying to write a conversion tool from SQLWindows to Java. One way I could do it is to write single-threaded apps, use posting, then explain to developers how to (1)make the apps multi-threaded and (2) stop posting at the same time, with manual edits. Regards, Mark Hunter
Technical Details
Message-ID:
<34D50A9A.538C@sprintmail.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<34D11663.2904@sprintmail.com> <6aumqp$2o37@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,570c8b5bf8dc08d X-Google-Attributes: gidf74b3,public From: Mark Hunter <mhunter@sprintmail.com> Subject: Re: Understanding synchronous vs. asynch events Date: 1998/02/01 Message-ID: <34D50A9A.538C@sprintmail.com> X-Deja-AN: 321195164 Content-Transfer-Encoding: 7bit References: <34D11663.2904@sprintmail.com> <6aumqp$2o37@forums.borland.com> Content-Type: text/plain; charset=us-ascii Organization: None Mime-Version: 1.0 Reply-To: mhunter@sprintmail.com Newsgroups: borland.public.jbuilder.java.language