Re: Critical Section limits?
From: Martin James (mjames_falcon_at_dial.pipex.com)
Date: 12/18/03
- Next message: Ben Hochstrasser [FF]: "Re: Add/Retreive Loca User info"
- Previous message: Muzzy: "Re: Add/Retreive Loca User info"
- In reply to: Damien Honeyford: "Critical Section limits?"
- Next in thread: Damien Honeyford: "Re: Critical Section limits?"
- Reply: Damien Honeyford: "Re: Critical Section limits?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 18 Dec 2003 21:24:00 -0000
> Does anyone have any experience of using thousands of critical sections
> successfully?
>
Not really. Can you design away the need for a CS per client? In my
server, the client object, and data received for it in the completion
routine, is queued to a small number of threads for processing. A thread
gets an object from the queue, processes it to a conclusion, usally by
queueing it to the IOCP read thread so another IOCP read can be issued.
There again, since my server has a half-life of 90 seconds, maybee I should
have more CS, (though I don't really thing my problem lies with controlling
access - it's much simpler than that - buggy code).
Rgds,
Martin
- Next message: Ben Hochstrasser [FF]: "Re: Add/Retreive Loca User info"
- Previous message: Muzzy: "Re: Add/Retreive Loca User info"
- In reply to: Damien Honeyford: "Critical Section limits?"
- Next in thread: Damien Honeyford: "Re: Critical Section limits?"
- Reply: Damien Honeyford: "Re: Critical Section limits?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|