About the multi-thread of the MRCP sever

93 views
Skip to first unread message

不死神鬼

unread,
May 13, 2021, 10:52:47 PM5/13/21
to UniMRCP
I find there is 13  alive threads when the MRCP server starts. But there is only 16 cores in my CPU. When I open one client, a new thread will be added to the server. there is a question,  Can I only open three clients at most?  Thanks a lot.

Arsen Chaloyan

unread,
May 24, 2021, 10:00:18 PM5/24/21
to UniMRCP
> I find there is 13  alive threads when the MRCP server starts. But there is only 16 cores in my CPU.

The correlation between the number of cores and the number of threads is not relevant in this context. There is a fixed number of threads launched on the loading of the server. Each thread may process hundreds of concurrent requests.

> When I open one client, a new thread will be added to the server.

This assumption is not correct and does not apply to the server. Not sure regarding the architecture of your plugin.

> there is a question,  Can I only open three clients at most?  Thanks a lot.

No, you should be able to process hundreds of concurrent requests.


On Thu, May 13, 2021 at 7:52 PM 不死神鬼 <renkail...@126.com> wrote:
I find there is 13  alive threads when the MRCP server starts. But there is only 16 cores in my CPU. When I open one client, a new thread will be added to the server. there is a question,  Can I only open three clients at most?  Thanks a lot.

--
You received this message because you are subscribed to the Google Groups "UniMRCP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to unimrcp+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/unimrcp/9e156c39-ea79-483d-8706-d930f3b6a99dn%40googlegroups.com.


--
Arsen Chaloyan
Author of UniMRCP
http://www.unimrcp.org

不死神鬼

unread,
May 25, 2021, 2:47:15 AM5/25/21
to UniMRCP
Because I need to do some work such as upsampling , VAD , etc, in plugin, I need to create many extra threads. Will this affect the concurrency performance of MRCP?

Arsen Chaloyan

unread,
Jun 8, 2021, 9:35:18 PM6/8/21
to UniMRCP
> Because I need to do some work such as upsampling , VAD , etc, in plugin, I need to create many extra threads.

You do not have to create a thread per task. A single thread may efficiently handle concurrent requests/tasks.

> Will this affect the concurrency performance of MRCP?

It depends. There is no short answer to this question.

Reply all
Reply to author
Forward
0 new messages