From: Janet Davis (jlnd_at_cs.washington.edu)
Date: Wed Jan 14 2004 - 20:34:42 PST
"Event-driven program" means that your code gets called when an event
occurs:
- your onCommand method gets called when the user types something
- your onReceive method gets called when a packet arrives
- your timer methods get called when a timer expires
Besides threaded programming, you can also contrast an event-driven
program to a polling program, where your code runs a single main loop that
checks to see if any of these things have happened.
Cheers,
Janet
On Wed, 14 Jan 2004, Nhan Jason V. Dang wrote:
> hey guys,
>
> Can someone please clarify what "event-driven program" mean?
>
> thanks a lot,
> ja.S.on
>
> ______________________________________
> Nhan Vinh Jason Dang
> Computer Engineering
> University of Washington
> http://students.washington.edu/jvndang
>
> "It is by living a life in common with a person that we learn
> of that person's moral character, and then only if having insight
> ourselves, we have watched a person for a long time. It is only
> in conversation with a person that we learn of that person's
> wisdom and clarity of heart; and then only if, having insight
> ourselves; we have paid attention for a long time. It is during
> times of trouble that we learn of another's fortitude; and then
> only if, having insight ourselves, we have paid careful attention
> for a long time." ~~The Buddha
>
> On Wed, 14 Jan 2004, Janet Davis wrote:
>
> > If you want to try out your solution with a sample solution, you can
> > connect through the emulator to a trawler at zuniga:9000.
> >
> > Nodes 1 and 2 are running the sample solution.
> >
> > Cheers,
> > Janet
> >
> > --
> > Janet Davis
> > jlnd_at_cs.washington.edu
> > http://www.cs.washington.edu/homes/jlnd/
> >
> >
> > _______________________________________________
> > Cse461 mailing list
> > Cse461_at_cs.washington.edu
> > http://mailman.cs.washington.edu/mailman/listinfo/cse461
> >
> _______________________________________________
> Cse461 mailing list
> Cse461_at_cs.washington.edu
> http://mailman.cs.washington.edu/mailman/listinfo/cse461
>
-- Janet Davis jlnd_at_cs.washington.edu http://www.cs.washington.edu/homes/jlnd/ _______________________________________________ Cse461 mailing list Cse461_at_cs.washington.edu http://mailman.cs.washington.edu/mailman/listinfo/cse461
This archive was generated by hypermail 2.1.6 : Wed Jan 14 2004 - 20:34:45 PST