If same socket is used by different threads will the file descriptoor chnage?
Answers
Answered by
2
HEY MATE!!! ❤❤❤HERE'S UR ANSWER!!!❤❤❤
No. Threads share the same memory, so they share the same variables. If you close socket in parent thread, it will be also closed in child thread.
HOPE THIS HELPS YOU!!! ❤❤❤
No. Threads share the same memory, so they share the same variables. If you close socket in parent thread, it will be also closed in child thread.
HOPE THIS HELPS YOU!!! ❤❤❤
Similar questions