Hi, everyone. The concept of asynchronous asynchronous is also noticeable, such as Java NIO. But isn't the synchronous socket also asynchronous if you allocate threads separately and process them? Blocking doesn't happen. It's also right to deal with it from time to time. I'm curious.
http
It seems to be the same conceptually because the asynchronous system is eventually going to be handled by another thread.
But in implementation, it would be quite a hassle to create and use a thread directly, and to have the callback of the original thread callback directly. If there's no particular reason, it's better to use what's made.
© 2024 OneMinuteCode. All rights reserved.