470,849 Members | 1,092 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,849 developers. It's quick & easy.

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
Jul 17 '05 #1
5 1906
G.********@Dur.ac.uk (George Palmer) wrote in message news:<30**************************@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 if you know it is going to occur

For instance?
Jul 17 '05 #2
"George Palmer" <G.********@Dur.ac.uk> wrote in message
news:30**************************@posting.google.c om...
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.

--
Tony Morris
(BInfTech, Cert 3 I.T., SCJP[1.4], SCJD)
Software Engineer
IBM Australia - Tivoli Security Software
(2003 VTR1000F)
Jul 17 '05 #3
"Tony Morris" <di******@optusnet.com.au> wrote in message news:<40**********************@news.optusnet.com.a u>...
"George Palmer" <G.********@Dur.ac.uk> wrote in message
news:30**************************@posting.google.c om...
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
Jul 17 '05 #4
nos

"George Palmer" <G.********@Dur.ac.uk> wrote in message
news:30**************************@posting.google.c om...
"Tony Morris" <di******@optusnet.com.au> wrote in message

news:<40**********************@news.optusnet.com.a u>...
"George Palmer" <G.********@Dur.ac.uk> wrote in message
news:30**************************@posting.google.c om...
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?
Jul 17 '05 #5
"nos" <no*@nospam.com> wrote in message news:<ICuYb.52419$uV3.104250@attbi_s51>...
"George Palmer" <G.********@Dur.ac.uk> wrote in message
news:30**************************@posting.google.c om...
"Tony Morris" <di******@optusnet.com.au> wrote in message

news:<40**********************@news.optusnet.com.a u>...
"George Palmer" <G.********@Dur.ac.uk> wrote in message
news:30**************************@posting.google.c om...
> 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
Jul 17 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

13 posts views Thread by Ajay | last post: by
1 post views Thread by j-integra_support | last post: by
1 post views Thread by dishal | last post: by
5 posts views Thread by Daniel | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.