Thread-Pool-Init - Netscape ENTERPRISE SERVER 6.0 - NSAPI PROGRAMMER GUIDE Manual

Nsapi
Table of Contents

Advertisement

Init SAFs

thread-pool-init

Applicable in
This function creates a new pool of user threads. A pool must be declared before
it's used. To tell a plugin to use the new pool, specify the
loading the plugin with the Init-class function
One reason to create a custom thread pool would be if a plugin is not thread-aware,
in which case you can set the maximum number of threads in the pool to 1.
The older parameter
called
The native pool on UNIX is normally not engaged, as all threads are OS-level
threads. Using native pools on UNIX may introduce a small performance overhead
as they'll require an additional context switch; however, they can be used to
localize the
control and management or to emulate single-threaded behavior for plug-ins.
On Windows NT, the default native pool is always being used and Enterprise
Server uses fibers (user-scheduled threads) for initial request processing. Using
custom additional pools on Windows NT introduces no additional overhead.
In addition, native thread pool parameters can be added to the
for convenience. For more information, see "Native Thread Pools," on page 268 in
Chapter 7, "Syntax and Use of magnus.conf."
Parameters
name
maxthreads
minthreads
queueSize
stackSize
256
Netscape Enterprise Server NSAPI Programmer's Guide • November 2001
-class directives.
Init
NativeThread=yes
.
NativePool
jvm.stickyAttach
name of the thread pool.
maximum number of threads in the pool.
Enterprise Server
minimum number of threads in the pool.
size of the queue for the pool. If all the threads in the pool
are busy, further request-handling threads that want to get a
thread from the pool will wait in the pool queue. The
number of request-handling threads that can wait in the
queue is limited by the queue size. If the queue is full, the
next request-handling thread that comes to the queue is
turned away, with the result that the request is turned
down, but the request-handling thread remains free to
handle another request instead of becoming locked up in the
queue.
stack size of each thread in the native (kernel) thread pool.
load-modules
always engages one default native pool,
effect or for other purposes, such as resource
parameter when
pool
.
file
magnus.conf

Advertisement

Table of Contents
loading

This manual is also suitable for:

Enterprise server 6.0

Table of Contents