# Threads

The TREP Adapter can open multiple channels to TREP each on a separate thread. This is controlled with the configuration options `max-threads` and `max-thread-objects`.

Contents:

## max-threads

Type: Integer

Default: 1

Valid values: 1 - 64 (inclusive)

Maximum number of UPA threads

## max-thread-objects

Type: Integer

Default: 1500

This sets the maximum number of objects that will be subscribed to on a single thread (and therefore TREP channel ). Note that if `max-threads` and `max-thread-objects` are both reached, it is the `max-thread-objects` limit which is broken.