FWIW, FCGI does show a threaded usage, but its the usage the OP is fighting :)

It did start off as fork based but they updated the API
http://search.cpan.org/grep?cpanid=FLORA&release=FCGI-0.74&string=thread&i=1&n=1&C=0
https://metacpan.org/source/FLORA/FCGI-0.74/threaded.PL
https://metacpan.org/source/FLORA/FCGI-0.74/os_win32.c ... CreateIoCompletionPort...

fastcgi threaded
->http://www.fastcgi.com/devkit/examples/threaded.c
->http://www.fastcgi.com/devkit/perl/threaded.PL

http://www.fastcgi.com/devkit/doc/www5-api-workshop.html

Tie-in to server architecture. API applications have to share the same architecture as the server: If the Web server is multi-threaded, the application has to be thread-safe. If the Web server has single-threaded processes, multi-threaded applications don't gain any performance advantage. Also, when the server's architecture changes, the API will usually have to change, and applications will have to be adapted or rewritten.

...

3. Single-threaded and multi-threaded applications

FastCGI gives developers a free choice of whether to develop applications in a single-threaded or multi-threaded style. The FastCGI interface supports multi-threading in two ways:

Applications can accept concurrent Web server connections to provide concurrent requests to multiple application threads.

Applications can accept multiplexed Web server connections, in which concurrent requests are communicated over a single connection to multiple application threads.


In reply to Re: [FCGI.pm] - not threads-safe? by Anonymous Monk
in thread [FCGI.pm] - not threads-safe? by zdm

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.