You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Due to the mechanism of thread, program can do things simultaneously.
So the client.c can do receiving (trigger when recv) and sending (trigger when user press enter) in the same time.
Is it like that threads automatically context switch between themselves and what if both the threads are sending data to server and there is also 1 thread which is only receiving data
I remember that for every client, the sever create a thread for it.
So if two clients are sending data to the server, the server has two correspond threads to receive.
How does client is able to know when it has to read and when it has to input message
The text was updated successfully, but these errors were encountered: