Object Interconnections Comparing Alternative Programming Techniques for Multi-threaded CORBA Servers (Column 7)
Douglas C. Schmidt, Steve Vinoski · 1997
Introduction Developers of multi-threaded servers face many challenges. One important challenge is selecting a suitable concurrency model. There are several concurrency models to choose from including thread-per-request, thread-pool, and threadper -session. Our last two columns discussed the thread-perrequest and thread-pool concurrency models, respectively. Weshowedhow each could be used to develop multi-threaded server programs for a distributed stock quote application. This column discusses the thread-per-session model, in which each new session created for a client is assigned a thread that processes requests for that session. Following the format of our recent columns, this column will illustrate the thread-per-session model by developing new multi-threaded stock quote servers using C, C++ wrappers, and CORBA. 2 The Thread-per-Session Concurrency Model Figure 1 illustrates the main components in the thread-perses