I can't comment much on your design as you didn't post it here. You might want to post (the relevant parts of) your code in addition to your text. Put it in between <code>...</code> tags so it renders and downloads nicely.
As for your design, why are you passing sockets to your worker threads? Just read all the information necessary for a job from the socket, and then pass that information to the worker. That way, you don't need to pass sockets around. Personally, I prefer nonblocking IO for doing socket communications, and I'd have one single thread dedicated to doing the socket IO, which basically maintains a set of buffers for each socket connection and fetches/dispatches/returns the data from the clients to the workers and back.
In reply to Re: Multithreaded server with shared sockets?
by Corion
in thread Multithreaded server with shared sockets?
by kornerr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |