[
https://issues.apache.org/jira/browse/SSHD-1148?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Work on SSHD-1148 started by Lyor Goldstein.
--------------------------------------------
> 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
> Assignee: Lyor Goldstein
> 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, a single thread does the same operation may be
> because of 2 different sessions, 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]