Java Events

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • George Palmer

    Java Events

    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
  • hiwa

    #2
    Re: Java Events

    G.R.Palmer@Dur. ac.uk (George Palmer) wrote in message news:<30bed537. 0402161008.71d1 66e3@posting.go ogle.com>...[color=blue]
    > 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[/color]
    [color=blue]
    > if you know it is going to occur[/color]
    For instance?

    Comment

    • Tony Morris

      #3
      Re: Java Events

      "George Palmer" <G.R.Palmer@Dur .ac.uk> wrote in message
      news:30bed537.0 402161008.71d16 6e3@posting.goo gle.com...[color=blue]
      > 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[/color]

      Sounds like a design flaw to me.

      --
      Tony Morris
      (BInfTech, Cert 3 I.T., SCJP[1.4], SCJD)
      Software Engineer
      IBM Australia - Tivoli Security Software
      (2003 VTR1000F)


      Comment

      • George Palmer

        #4
        Re: Java Events

        "Tony Morris" <dibblego@optus net.com.au> wrote in message news:<4031e263$ 0$4259$afc38c87 @news.optusnet. com.au>...[color=blue]
        > "George Palmer" <G.R.Palmer@Dur .ac.uk> wrote in message
        > news:30bed537.0 402161008.71d16 6e3@posting.goo gle.com...[color=green]
        > > 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[/color]
        >
        > Sounds like a design flaw to me.[/color]

        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(interesting ly IBM's JVM is over twice as fast
        as Sun's at this).

        George

        Comment

        • nos

          #5
          Re: Java Events


          "George Palmer" <G.R.Palmer@Dur .ac.uk> wrote in message
          news:30bed537.0 402170701.6d076 8be@posting.goo gle.com...[color=blue]
          > "Tony Morris" <dibblego@optus net.com.au> wrote in message[/color]
          news:<4031e263$ 0$4259$afc38c87 @news.optusnet. com.au>...[color=blue][color=green]
          > > "George Palmer" <G.R.Palmer@Dur .ac.uk> wrote in message
          > > news:30bed537.0 402161008.71d16 6e3@posting.goo gle.com...[color=darkred]
          > > > 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[/color]
          > >
          > > Sounds like a design flaw to me.[/color]
          >
          > 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(interesting ly IBM's JVM is over twice as fast
          > as Sun's at this).
          >
          > George[/color]
          How fast is it now? Are you loosing data?


          Comment

          • George Palmer

            #6
            Re: Java Events

            "nos" <nos@nospam.com > wrote in message news:<ICuYb.524 19$uV3.104250@a ttbi_s51>...[color=blue]
            > "George Palmer" <G.R.Palmer@Dur .ac.uk> wrote in message
            > news:30bed537.0 402170701.6d076 8be@posting.goo gle.com...[color=green]
            > > "Tony Morris" <dibblego@optus net.com.au> wrote in message[/color]
            > news:<4031e263$ 0$4259$afc38c87 @news.optusnet. com.au>...[color=green][color=darkred]
            > > > "George Palmer" <G.R.Palmer@Dur .ac.uk> wrote in message
            > > > news:30bed537.0 402161008.71d16 6e3@posting.goo gle.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.[/color]
            > >
            > > 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(interesting ly IBM's JVM is over twice as fast
            > > as Sun's at this).
            > >
            > > George[/color]
            > How fast is it now? Are you loosing data?[/color]

            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

            Comment

            Working...