ASYNCHRONOUS/SOCKET COMMUNICATION QUESTION.

Asked 2 years ago, Updated 2 years ago, 98 views

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

2022-09-22 21:28

1 Answers

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.


2022-09-22 21:28

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.