What is the best way to implement multi-threading in C++

Smith, Roland 40 Reputation points
2023-12-18T20:27:38.83+00:00

I have a HttpPlatformHandler server written in PowerBuilder. I want to rewrite the main processing part in C++ and then call out to PowerBuilder for the business logic. I have a FastCGI server that does it it that way so I know how that part works.

I'm wondering what is the best way to implement multi-threading in C++ in a HttpPlatformHandler server executable. The main thread doesn't really need to track requests, I just need to launch a thread to handle the current request and (if possible) have the request thread handle cleanup once the PowerBuilder code is done.

Developer technologies | C++
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 77,766 Reputation points Volunteer Moderator
    2023-12-19T16:55:28.68+00:00

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.