Bug 5886 - non-blocking methods
: non-blocking methods
Status: RESOLVED FIXED
: gRAVI
gRAVI
: 1.1
: All All
: P3 critical
: ---
Assigned To:
:
:
:
:
  Show dependency treegraph
 
Reported: 2008-02-25 14:57 by
Modified: 2008-03-13 16:46 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2008-02-25 14:57:10
generated RAVE code "non-blocking" methods don't return immediately.

These methods perform a "Thread.sleep(100)", which releases the current thread
and waits for another.  This actually buys you nothing if there are already
multiple threads running in the application.

This code needs to be run in a new thread so the wrapped command line operation
can return immediately.
------- Comment #1 From 2008-02-25 15:57:53 -------
(opinion based solely on bug report) I suggest using this framework, in
particular FutureTask

http://backport-jsr166.sourceforge.net
------- Comment #2 From 2008-03-13 16:46:01 -------
Just create a new thread, which monitor the process.  Concurrency issues still
need to be addressed, but at least it now displays the advertised behavior.