What is the impact of using a SocketChannel in non-blocking mode over traditional blocking I/O socket communication?

  • a. SocketChannel offers better performance with lower CPU usage.
  • b. Non-blocking SocketChannel can handle only one connection at a time.
  • c. Blocking I/O sockets are more suitable for high-throughput applications.
  • d. Non-blocking SocketChannel improves data integrity.
Using SocketChannel in non-blocking mode (option a) can lead to improved performance with lower CPU usage compared to traditional blocking I/O sockets. Non-blocking SocketChannels can handle multiple connections concurrently. Option c is incorrect because non-blocking SocketChannels are often favored for high-throughput scenarios. Option d is not accurate as data integrity is not directly related to blocking or non-blocking mode.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *