Many threads

Many threads

sharpeye's picture
For each session Media SDK creates additional threads (4 in my case). The decoding of 3 streams leads to the creation of the 12 additional threads. Is it possible to avoid creating unnecessary threads? Thanks in advance.

5 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.
Admin's picture

Hi sharpeye,

There is no way of controlling the number of internal threads allocated per session.

The number of threads used per session depends on the number of logical cores your platform has. Media SDK will allocate one thread per logical core (per session).

Do you have any specific reason for wanting to decrease the number of active threads in your workload? Regards, Petter

test signature support on forums
sharpeye's picture

Hi Petter,
Then I start 8 threads of the decompression, Media SKD start 32 threads addition. Many of them is innactive. I think 4 threads (one thread per logical core) is enough for all joined sessions in the application.

Regards, sharpeye

sharpeye's picture
Hi Petter,

Then I start 8 threads of the decompression, Media SKD start 32 threads addition. Many of them is innactive. I think 4 threads (one thread per logical core) is enough for all joined sessions in the application.

Regards, sharpeye

Admin's picture

Hi sharpeye,

In the case you Join the sessions the threads from the sessions that were joined with the main session will be idle and will not impact performance. These threads cannot be removed since we have to support the Disjoin operation.

Regards, Petter

test signature support on forums

Login to leave a comment.