Re: Java Events

From: George Palmer (G.R.Palmer_at_Dur.ac.uk)
Date: 02/18/04

  • Next message: Magnus Anvin: "Re: Servlet reading config file from ?? path"
    Date: 18 Feb 2004 01:48:52 -0800
    
    

    "nos" <nos@nospam.com> wrote in message news:<ICuYb.52419$uV3.104250@attbi_s51>...
    > "George Palmer" <G.R.Palmer@Dur.ac.uk> wrote in message
    > news:30bed537.0402170701.6d0768be@posting.google.com...
    > > "Tony Morris" <dibblego@optusnet.com.au> wrote in message
    > news:<4031e263$0$4259$afc38c87@news.optusnet.com.au>...
    > > > "George Palmer" <G.R.Palmer@Dur.ac.uk> wrote in message
    > > > news:30bed537.0402161008.71d166e3@posting.google.com...
    > > > > Hi Guys,
    > > > >
    > > > > Is there any way to speed up an event firing if you know it is going
    > > > > to occur and don't want to proceed in the program code until it has?
    > > > > I guess there is a way to hand over control or perhaps give the event
    > > > > stack a kick (if there is one)?
    > > > >
    > > > > Thanks,
    > > > >
    > > > > George
    > > >
    > > > Sounds like a design flaw to me.
    > >
    > > I'm not convinced. I'm waiting for a java serial port event to fire.
    > > If I compile the Java code into native or use a C++ equivalent then
    > > the retrieval of the data from the external device is much faster.
    > > Thus I was just wondering whether I could increase the performance of
    > > Java running on the JVM(interestingly IBM's JVM is over twice as fast
    > > as Sun's at this).
    > >
    > > George
    > How fast is it now? Are you loosing data?

    It takes about 40ms on the IBM JVM and around 100ms on the Sun JVM.
    This may not seem like a problem but my computer is quite fast and it
    is desirable to have as many queries as possible (to the external
    device) in a given time. I'm not experiencing data loss unless I try
    and retrieve the data immediately (hence the need to wait for an
    event).

    Thanks in advance for any help,

    George


  • Next message: Magnus Anvin: "Re: Servlet reading config file from ?? path"