No subject


Sat Nov 12 19:29:10 PST 2005


and notify the listener when something happens. Thread will poll
only if its in a loop... if not the thread is bound to die...
and hence wont run after it finishes the loop...nobody will be
notified ... cause thread is not watching any thing annymore


From: "Ronald De Castro" <rdcastro at ntsp.nec.co.jp>
To: "Makarand Kashikar" <makarandkashikar at hotmail.com>, 
<advanced-java at lists.xcf.berkeley.edu>
Subject: Re: [Advanced-java] Thread Behavior
Date: Wed, 23 May 2001 03:02:41 +0800

I have attached the files.  I hope you can give me any suggestions.
thanks..


----- Original Message -----
From: "Makarand Kashikar" <makarandkashikar at hotmail.com>
To: <rdcastro at ntsp.nec.co.jp>; <advanced-java at lists.xcf.berkeley.edu>
Sent: Wednesday, May 23, 2001 2:39 AM
Subject: Re: [Advanced-java] Thread Behavior


 > you dont mind, and if the classes are not bulky, share the code .. ?
 > without it its difficult to suggest anything...
 >
 > From: "Ronald De Castro" <rdcastro at ntsp.nec.co.jp>
 > To: "Makarand Kashikar" <makarandkashikar at hotmail.com>,
 > <advanced-java at lists.xcf.berkeley.edu>
 > Subject: Re: [Advanced-java] Thread Behavior
 > Date: Wed, 23 May 2001 02:36:22 +0800
 >
 >  > I dont want to offend you by saying this but did you register
listeners.
 >  > If you dont register your listener then you wont see the event being
 >  > fired / hapopening.
 >
 >      Yes.  I registered all the listeners.  I was really expecting the
main
 >      class to receive an event but it didn't.  Are there other possible
 >      cause for this to occur?
 >
 >      thanks...
 >
 >
 > ----- Original Message -----
 > From: "Makarand Kashikar" <makarandkashikar at hotmail.com>
 > To: <rdcastro at ntsp.nec.co.jp>; <advanced-java at lists.xcf.berkeley.edu>
 > Sent: Wednesday, May 23, 2001 2:34 AM
 > Subject: Re: [Advanced-java] Thread Behavior
 >
 >
 >  > I dont want to offend you by saying this but did you register
listeners.
 >  > If you dont register your listener then you wont see the event being
 >  > fired / hapopening.
 >  >
 >  > Sometimes you tend to miss out on some simple things...
 >  >
 >  >
 >  > From: "Ronald De Castro" <rdcastro at ntsp.nec.co.jp>
 >  > To: <advanced-java at lists.xcf.berkeley.edu>
 >  > Subject: [Advanced-java] Thread Behavior
 >  > Date: Wed, 23 May 2001 02:24:19 +0800
 >  >
 >  > Note: please use courier fonts (or any fixed width fonts)
 >  >        to view the diagram clearly.  =)
 >  >
 >  > Hello everybody,
 >  >
 >  >      I would like to ask about Thread behaviors.
 >  >
 >  >      I created a Thread object "thread" under my
 >  >      "main" class.  My thread object implements
 >  >      an interface "mylistener".  My "main" class
 >  >      implements the ActionListener interface and
 >  >      when there's a specific action fired, my
 >  >      "main" class triggers an event to my "thread"
 >  >      object through the mylistener interface. And
 >  >      then my "main" class also implements another
 >  >      interface "mythreadlistener" in which the
 >  >      "thread" class fires an event to this listener
 >  >      whenever the thread class receives an event
 >  >      from the mylistener interface but the event
 >  >      being thrown from thread class is not received
 >  >      in the main class.  why is it?
 >  >
 >  >      please help me about this.  =)
 >  >
 >  >      i made a diagram below so that it would
 >  >      be easier for you to visualize what i'm trying
 >  >      to ask all of you.  thanks..
 >  >
 >  >      please follow the number i indicated for guidance. =)
 >  >
 >  >      +------+   implements  +------------------+
 >  >      | main |---+-----------| mythreadlistener | 5) ? problem here.  
no
 >  >      +------+   |           +------------------+    events received
 >  >          |      |           +----------------+
 >  >          |      +-----------| actionlistener | 1) action listener
 > receives
 >  >          |                  +----------------+    an event.
 >  >          |* instantiates the                   2) fires an event to 
all
 >  >          |  thread Object                         classes implementing
 >  >          |                                        mylistener interface
 >  >          |
 >  >        +--------+   implements      +------------+
 >  >        | thread |-------------------| mylistener | 3) receives an 
event
 >  >        +--------+                   +------------+    from main class
 >  >                                                       through the
 > mylistener
 >  >                                                       interface. (2)
 >  >                                                    4) fires an event 
to
 > all
 >  >                                                       classes
 > implementing
 >  >                                                       mythreadlistener
 >  > interface
 >  >
 >  >      problem:
 >  >         After case 4 is done, the mythreadlistener in main class
 >  >         does not receive any event fired by thread class.  why is it?
 >  >
 >  >      Hoping for your replies.  thanks..
 >  >
 >  > thank you very much,
 >  > ronald
 >  >
 >  >
 >  >
 >  >
 >  >
 >  > _________________________________________________________________
 >  > Get your FREE download of MSN Explorer at http://explorer.msn.com
 >  >
 >  >
 >
 >
 > _________________________________________________________________
 > Get your FREE download of MSN Explorer at http://explorer.msn.com
 >
 > _______________________________________________
 > Advanced-java mailing list
 > Advanced-java at lists.xcf.berkeley.edu
 > http://lists.xcf.berkeley.edu/mailman/listinfo/advanced-java
 >
<< PingProcess.java >>
<< VRpingWIndow.java >>

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com




More information about the Advanced-java mailing list