[ 
https://issues.apache.org/jira/browse/SSHD-1148?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Susmit Sarkar updated SSHD-1148:
--------------------------------
    Description: 
Hello Lyor/Team,

I am laterally performing 2 PUT operations, one from ssh terminal and another 
from WinSCP. During the process, I am printing the thread name/id. For both the 
case, I am getting a thread name as:

*sshd-SftpSubsystem-thread-1*

Despite being the operation being parallel executed, as both the operation are 
parallelly executed how can a single thread does the same operation, is there 
any way to pass an executor thread pool to *SshServer* so we can see different 
thread working parallelly. May be my understanding is wrong, can you please 
guide me

*sshdServer.setScheduledExecutorService(Executors.newScheduledThreadPool(5), 
true);*

Will this spawn 5 parallel threads, and will be shut down gracefully as the 
boolean is set to *true*

 

If it's a single thread model then if we use NioWorker threads as 2, and the 
number of cores if I have 4 so total will be 6, so now as 1 core is occupied 
with that single thread, will the remaining 5 cores will sit idle?

  was:
Hello Lyor/Team,

I am laterally performing 2 PUT operations, one from ssh terminal and another 
from WinSCP. During the process, I am printing the thread name/id. For both the 
case, I am getting a thread name as:

*sshd-SftpSubsystem-thread-1*

Despite being the operation being parallel executed, as both the operation are 
parallelly executed how can a single thread does the same operation, is there 
any way to pass an executor thread pool to *SshServer* so we can see different 
thread working parallelly. May be my understanding is wrong, can you please 
guide me

*sshdServer.setScheduledExecutorService(Executors.newScheduledThreadPool(5), 
true);*

Will this spawn 5 parallel threads, and will be shut down gracefully as the 
boolean is set to *true*

 

Thank you as always..


> Question on thread handling with IOservicefactory as NIO2
> ---------------------------------------------------------
>
>                 Key: SSHD-1148
>                 URL: https://issues.apache.org/jira/browse/SSHD-1148
>             Project: MINA SSHD
>          Issue Type: Question
>            Reporter: Susmit Sarkar
>            Priority: Major
>
> Hello Lyor/Team,
> I am laterally performing 2 PUT operations, one from ssh terminal and another 
> from WinSCP. During the process, I am printing the thread name/id. For both 
> the case, I am getting a thread name as:
> *sshd-SftpSubsystem-thread-1*
> Despite being the operation being parallel executed, as both the operation 
> are parallelly executed how can a single thread does the same operation, is 
> there any way to pass an executor thread pool to *SshServer* so we can see 
> different thread working parallelly. May be my understanding is wrong, can 
> you please guide me
> *sshdServer.setScheduledExecutorService(Executors.newScheduledThreadPool(5), 
> true);*
> Will this spawn 5 parallel threads, and will be shut down gracefully as the 
> boolean is set to *true*
>  
> If it's a single thread model then if we use NioWorker threads as 2, and the 
> number of cores if I have 4 so total will be 6, so now as 1 core is occupied 
> with that single thread, will the remaining 5 cores will sit idle?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to