Java 2 SDK for Solaris Developer's Guide

Poller Class

The Poller class demonstration code provides a means of accessing the functionality of the C poll(2) API. It attempts to mirror the C poll(2) API only as much as is possible while allowing for optimal performance. To remove the impact of shuttling large arrays of I/O objects between Java and the kernel, management of the files/sockets to be polled has been moved into the JNI C code (or the /dev/poll device driver itself, if available). The README.txt file included in the Poller class demonstration directory gives more detailed information on using it.