sunacha3 / java-simple-serial-connector

Automatically exported from code.google.com/p/java-simple-serial-connector
1 stars 0 forks source link

High CPU load using jssc #77

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Just using 2 or more COM-Ports 

What is the expected output? What do you see instead?
Without COM-Ports 2-5% CPU load. 10% and more CPU load when using 2 or more 
COM-Ports.

What version of the product are you using? On what operating system?
2.8.0 on UbuntuServer 14.04

Please provide any additional information below.
Even without any thing happening on the cables (no sending or receiving) the 
load is high.
We discovered that the EventThread in PortHandle sleeps for only 100 
nanoseconds. We assume this is the problem - it is to low. Could it be 
parametrized with a standard of a 100ns? I think there's no necessity for a 
thread to sleep so little, or is there?

Original issue reported on code.google.com by Philippe...@gmail.com on 8 Dec 2014 at 11:12

GoogleCodeExporter commented 9 years ago
I have the exact same problem with a Raspberry Pi. CPU load is al least 50% 
even when nothing happens. Most of the time is spent in waitEvents (native 
method).

Original comment by voodool...@gmail.com on 22 Feb 2015 at 6:40