Thread: Network Services Architecture Question.

  1. #1
    Registered User
    Join Date
    Feb 2003

    Network Services Architecture Question.

    My question is hypothetical: Your writing a multi-client service application, what architecture for the sockets would you choose (and why)?

    A Blocking approach where each socket is accepted and has its own thread,


    A nonblocking approach using far fewer threads with a select loop.

    Im curious to know which performs better under which situations and why you would choose one over another.

  2. #2
    Registered User
    Join Date
    Aug 2002
    Hermosa Beach, CA
    I had always heard that the blocking/threading approach is easier, but the async/select method yields higher performance. Not sure how much higher. I've always used the approach with threads.
    The crows maintain that a single crow could destroy the heavens. Doubtless this is so. But it proves nothing against the heavens, for the heavens signify simply: the impossibility of crows.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. general network question
    By n3v in forum Networking/Device Communication
    Replies: 4
    Last Post: 05-26-2006, 01:21 PM
  2. Exam Question - Possible Mistake?
    By Richie T in forum C++ Programming
    Replies: 15
    Last Post: 05-08-2006, 03:44 PM
  3. 3D Network Analysis Tool
    By durban in forum Projects and Job Recruitment
    Replies: 1
    Last Post: 11-08-2005, 06:33 PM
  4. Game Network Architecture
    By f0r3nsic in forum Game Programming
    Replies: 3
    Last Post: 10-10-2005, 10:57 PM
  5. Need help with easy Network setup
    By the dead tree in forum Tech Board
    Replies: 9
    Last Post: 04-08-2005, 07:44 PM