summaryrefslogtreecommitdiff
path: root/docs/tutorials/007/page09.html
blob: af87b79444caa1a611b72c78fad6c010747d85fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<HTML>
<HEAD>
   <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
   <META NAME="GENERATOR" CONTENT="Mozilla/4.04 [en] (X11; I; Linux 2.0.32 i486) [Netscape]">
   <META NAME="Author" CONTENT="James CE Johnson">
   <META NAME="Description" CONTENT="A first step towards using ACE productively">
   <TITLE>ACE Tutorial 006</TITLE>
</HEAD>
<BODY TEXT="#000000" BGCOLOR="#FFFFFF" LINK="#000FFF" VLINK="#FF0F0F">

<CENTER><B><FONT SIZE=+2>ACE Tutorial 007</FONT></B></CENTER>

<CENTER><B><FONT SIZE=+2>Creating a thread-pool server</FONT></B></CENTER>

<HR WIDTH="100%">

<P>That's it for Tutorial 7.&nbsp; As with Tutorial 6, we really didn't
have to change much to introduce a new threading strategy.&nbsp; Most of
the work was in creating the Thread_Pool object itself.&nbsp; Everything
else was just minor housekeeping.

<P>There is a fourth common thread strategy:&nbsp; thread-per-request.&nbsp;
It's not one of my favorites, so I wasn't planning to go into it.&nbsp;
If you want to contribute a tutorial on that topic though, I'll be glad
to include it here.

<P>For reference, here's the file list again:
<UL>
<LI>
<A HREF="Makefile">Makefile</A></LI>

<LI>
<A HREF="client_acceptor.h">client_acceptor.h</A></LI>

<LI>
<A HREF="client_acceptor.cpp">client_acceptor.cpp</A></LI>

<LI>
<A HREF="client_handler.cpp">client_handler.cpp</A></LI>

<LI>
<A HREF="client_handler.h">client_handler.h</A></LI>

<LI>
<A HREF="server.cpp">server.cpp</A></LI>

<LI>
<A HREF="thread_pool.h">thread_pool.h</A></LI>

<LI>
<A HREF="thread_pool.cpp">thread_pool.cpp</A></LI>

<LI>
<A HREF="fix.Makefile">fix.Makefile</A></LI>
</UL>
&nbsp;

<P>
<HR WIDTH="100%">
<CENTER>[<A HREF="..">Tutorial
Index</A>]</CENTER>

</BODY>
</HTML>