---
title: "Thread Pool Design Considerations"
url: https://docs.zeroc.com/ice/3.8/runtime/threading-model/thread-pool-design-considerations
language: python
docs_index: https://docs.zeroc.com/llms.txt
---

> For an index of every page, see [llms.txt](https://docs.zeroc.com/llms.txt).

# Thread Pool Design Considerations

Programming language: Python. Other languages: [C++](https://docs.zeroc.com/ice/3.8/runtime/threading-model/thread-pool-design-considerations/cpp.md), [C#](https://docs.zeroc.com/ice/3.8/runtime/threading-model/thread-pool-design-considerations/csharp.md), [Java](https://docs.zeroc.com/ice/3.8/runtime/threading-model/thread-pool-design-considerations/java.md), [Swift](https://docs.zeroc.com/ice/3.8/runtime/threading-model/thread-pool-design-considerations/swift.md).

By default, the client and server thread pools of a communicator have a single thread, so Ice dispatches one request at a time and processes one reply at a time. To let your application dispatch requests or process replies concurrently, you increase the maximum size of these thread pools. This page describes what each choice means for your application.

## Single-Threaded Pool

A thread pool with a maximum size of one thread behaves as follows:

- **The pool dispatches one request at a time.**
- **The pool processes one reply at a time.**

## Multi-Threaded Pool

The Python interpreter executes one thread at a time. With a multi-threaded pool, a dispatch that blocks (on I/O, for example) lets another dispatch run, but two dispatches never run in parallel. Your servants must still be thread-safe, since the interpreter can switch from one dispatch to another at any point.

## See Also

- [Thread Pools](https://docs.zeroc.com/ice/3.8/runtime/threading-model/thread-pools/python.md)
- [Concurrent Proxy Invocations](https://docs.zeroc.com/ice/3.8/runtime/invocation/concurrent-proxy-invocations.md)
- [Nested Invocations](https://docs.zeroc.com/ice/3.8/runtime/threading-model/nested-invocations/python.md)
- [Connection Establishment](https://docs.zeroc.com/ice/3.8/runtime/connection-management/connection-establishment/python.md)
