You are viewing a single comment's thread. Return to all comments →
Simplely creating a write_string_to_socket call seems to pass the test without regard to multithreading in C++.
I'm pretty sure this isn't the answer they want, but I'm not sure what the correct answer would look like.
I wanted to mention that it's actually already using pthreads for you in the C++ version. Look at the function layout and the thread exit at the bottom. Without seeing all the code that it doesn't show you it can be confusing!