[1089] in java-interest

home help back first fref pref prev next nref lref last post

Applets and threads.....

daemon@ATHENA.MIT.EDU (Madhu Surendranath)
Fri Aug 18 13:46:55 1995

Date: Fri, 18 Aug 1995 15:32:21 +0000
From: madhu.surendranath@bt-sys.bt.co.uk (Madhu Surendranath)
To: java-interest@java.sun.com
Cc: madhu@bt-sys.bt.co.uk

Hi All,

I'm having some problems with Thread and Applet inter-communication.....

What I need to do is pass a message (such as a String) from a Thread (that has been spawned from an Applet) BACK to its parent Applet.

My first attempt at this was to create a pipe (PipedInput/OutputStream) between each Thread (as the Applet itself is a thread), but my problem was that they would not connect to each other.  I guess it was because my Applet could not find out whether the Thread has its "PipedOutputStream" open or not.

How can I do this type of "message passing" between Threads, is it possible or have I missed out on an obvious point?

Any help would be appreciated, thanks, Madhu.

+---+-------------------------+------------------------------------------+--+
|    _/_/_/_/ _/_/_/ _/_/_/_/ | Madhu Surendranath                          |
|   _/ _/ _/ _/  _/   _/   _/ | Information Visualisation, Systems Research |
|  _/ _/ _/ _/_/_/   _/   _/  | BT Labs, Martlesham Heath, Ipswich, UK.     |
| _/ _/ _/ _/  _/ _/_/_/_/    | "One man CAN make a difference....."        |
+--+--------------------------+------------------------------------------+--+

-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post