Details
-
Question
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
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, 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?