By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,384 Members | 671 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,384 IT Pros & Developers. It's quick & easy.

Java Events

P: n/a
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
Share this Question
Share on Google+
5 Replies


P: n/a
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

P: n/a
"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

P: n/a
"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

P: n/a
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

P: n/a
"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.