How to implement worker threads using MFC ISAPI extension (185518)
The information in this article applies to:
- Microsoft Internet Information Server 3.0
- Microsoft Internet Information Server 4.0
- Microsoft Internet Information Services 5.0
- Microsoft Internet Information Services version 5.1
- Microsoft Visual C++, 32-bit Enterprise Edition 5.0
- Microsoft Visual C++, 32-bit Enterprise Edition 6.0
- Microsoft Visual C++, 32-bit Professional Edition 5.0
- Microsoft Visual C++, 32-bit Professional Edition 6.0
- Microsoft Internet Server Application Programming Interface (API)
This article was previously published under Q185518 We strongly recommend that all users upgrade to Microsoft Internet Information Services (IIS) version 6.0 running on Microsoft Windows Server 2003. IIS 6.0 significantly increases Web infrastructure security. For more information about IIS security-related topics, visit the following Microsoft Web site: SUMMARY
One method of implementing an ISAPI extension that can potentially require
a long processing time (whether it is waiting on database queries or
waiting on other network connections) is to implement a worker thread
model. This ensures that the IIS Asynchronous Thread Queue (ATQ) thread is
not tied up for long periods. While an example of implementing worker threads within an ISAPI extension is distributed with the platform SDK, implementing a similar scheme using an ISAPI Wizard-generated MFC-based extension is not as clear-cut. This article demonstrates how to incorporate worker threads within an MFC-based extension.
REFERENCESFor additional information, click the article number below
to view the article in the Microsoft Knowledge Base:
197728 Creating a Thread Pool for MFC-Based ISAPI Extensions
See Thread Local Storage in Win32 API Documentation.
Modification Type: | Minor | Last Reviewed: | 6/22/2006 |
---|
Keywords: | kbdownload kbFilter kbhowto kbhttp KB185518 |
---|
|