Let\'s say I have a multithreaded C++ program that handles requests in the form of a function call to handleRequest(string key)
. Each call to handleRequest
It will depend on the platform, but the two techniques that I'd try would be:
Both techniques will depend on the detail of your OS. Experiment and see which works. .