[Rxtx] Questions about the Rewrite2010
Kustaa Nyholm
Kustaa.Nyholm at planmeca.com
Tue Mar 1 04:57:02 MST 2011
On 3/1/11 13:13, "Adrian Crum" <adrian.crum at sandglass-software.com> wrote:
>The javax.comm API specification requires one event monitor thread per
>port. I don't like the idea of having a thread per port either, but one
>of the rewrite's design goals is strict conformance to the specification.
Ah, had not spotted that requirement.
>
>The 50 mS polling interval is just a placeholder. The final design of
>that is yet to be decided.
>
>In Windows, you have two choices for I/O: overlapped and non-overlapped.
>In overlapped I/O a thread is blocked, waiting for something to happen.
>In non-overlapped I/O a thread does not block. I chose non-overlapped
>I/O to avoid thread blocking at the OS level - instead, the thread
>blocking is kept in Java.
>
>-Adrian
thanks for the explanation.
br Kusti
More information about the Rxtx
mailing list