- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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,
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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,
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

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page