Re: Critical Section limits?

From: Martin James (mjames_falcon_at_dial.pipex.com)
Date: 12/18/03


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



Relevant Pages

  • asynchronously writing to a file, a cheap way?
    ... performance when the processing server is running. ... end of the pipe doesn't need to be running. ... remove "nospam" change community. ... I you already have a thread pool or IOCP that you can use t handle the ...
    (microsoft.public.win32.programmer.kernel)
  • Re: asynchronously writing to a file, a cheap way?
    ... your typical asynchronous route for writing to a file, ... performance when the processing server is running. ... end of the pipe doesn't need to be running. ... I you already have a thread pool or IOCP that you can use t handle the ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Memory Manager Tests - using 512 Threads
    ... > non-blocking TCP server hits a limit of connections it can handle. ... I am handling the same number of connections with 16 as with 512 threads, ... with IOCP. ... compressed and encrypted before being sent to the Server. ...
    (borland.public.delphi.thirdpartytools.general)
  • How about Threads and IOCP Efficient Design,other IOCP per thread?
    ... i have developed a server to do I/O for video/audio from remote peers. ... IOCP can control the own thread when a I/O Bound ... a packet contains video data has size of 3500 ~ 5000 bytes several time. ...
    (microsoft.public.win32.programmer.networks)
  • Re: condvar for win32?
    ... and I did not want to tie that up for anything but I/O. ... > an IOCP queue is limited my the amount of non-paged memory... ... I want to maximize the number of connections, and the number of pending I/O operations the server can handle. ... If you have 50,000 connections and each connection has multiple overlapped sends and recvs going, and perhaps multiple disk reads and writes, well, the non-paged memory becomes a major issue indeed. ...
    (comp.programming.threads)