Listening to Stream's in Java



  • exist Java any specific mechanism for multiplying input-out events, such as https://ru.wikipedia.org/wiki/Epoll ?

    P.S. In particular, I'm interested in listening to the mass. https://developer.android.com/reference/android/bluetooth/BluetoothSocket.html ♪Android)



  • The answer is no. If the Java program is high, it's usually Thread for each connection. Java is a multiplier system, and not all platforms can be epoll.

    PS. Try java.nio.channels. Selector, theortics, he must work with Bluetooth compounds.




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2