Boost::Thread or fork() : Multithreaded HTTP Proxy

Posted by osmano807 on Stack Overflow See other posts from Stack Overflow or by osmano807
Published on 2010-03-26T18:30:43Z Indexed on 2010/03/26 19:33 UTC
Read the original article Hit count: 483

Filed under:
|
|

I'm testing boost::thread on a system. It happens that I needed to act as a fork(), because one thread modifies the other variables, even member variables of class

I do the project using fork() or is there some alternative still using boost::thread?

Basically I run this program in Linux and maybe FreeBSD.

It is an http proxy,accept() in main thread, and a function that accepts a class (where there is the file descriptor socket) in a secondary thread that makes the service.

Is there a better way to implement a proxy?

© Stack Overflow or respective owner

Related posts about c++

Related posts about multithreading