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
Social Sciences,
7 months ago
History,
7 months ago
World Languages,
7 months ago
History,
1 year ago
Biology,
1 year ago
Math,
1 year ago
English,
1 year ago