[jacorb-bugs] [Bug 925] Delay in serial (rxtx) communication

bugzilla-daemon at jacorb.org bugzilla-daemon at jacorb.org
Tue Jul 31 13:19:05 CEST 2012


http://www.jacorb.org/cgi-bin/bugzilla/show_bug.cgi?id=925





------- Comment #10 from kujtimhyseni at hotmail.com  2012-07-31 13:19 -------
(In reply to comment #9)
> I do not have immediate access to a second computer (and do not have access to
> any serial cables). 
> 

Unfortunately, newest computers doesn't posses the serial port - you can use
"usb-to-serial" converter cable but it costs - by us around 10 eur = 12.26 $.
But in this case you need two converters - for each computer, and one
"male-to-male" gender changer to connect the two converters.


> Have you seen my previous questions and the simple test I have done with just
> JacORB (showing no apparent delays) ?
> 

Yes I have seen the code. I have no doubt in JacORB without gnu.io - I have
done similar test in past. What I have seen interesting is that you create an
array just once:

    private static byte[] br = new byte[10000];
    static
    {
        (new java.util.Random ()).nextBytes (br);
    }

and call it several times.

I plan to report another "bug", but, prior can you do some tests before - I
mean a simple test. Define e simple interface with two methods which return
void and accept no parameters, namely delay1 and delay2. In delay1's body
insert the code "Thread.sleep(5000)" and in delay2's body insert two void for
loops "for (int l1= 0; i1 <=100000; l1++) for (int l2= 0; i2 <=100000; l2++);"
and see how it affect your overall system's performance. I don't know about
Linux (which you use) but at me in Windows XP it blocks everything - does this
has to do with virtual machine you mentioned in previous comment?


-- 
Configure bugmail: http://www.jacorb.org/cgi-bin/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


More information about the jacorb-bugs mailing list