RSS Amplifier

Recent Questions - Software Engineering Stack Exchange · Nov 1, 2012

Is there a limit on the number of threads that can be spawned simultaneously?

0
Sign in to vote or save

This page did not load. You can still read it on the original site — the toolbar below keeps your place in the directory.

Yesterday I came across this question: How can i call robocopy within a python script to bulk copy multiple folders? , and I though it might be a good exercise for multithreading. I though of spawning as many threads as files needed to be copied, each routine having an exception handling system to prevent the whole copying process from crashing (and log -using mutex on the log file - if there was…

Yesterday I came across this question: How can i call robocopy within a python script to bulk copy multiple folders?, and I though it might be a good exercise for multithreading.

I though of spawning as many threads as files needed to be copied, each routine having an exception handling system to prevent the whole copying process from crashing (and log -using mutex on the log file - if there was an error).

My question: Is there a limit on the number of thread you can spawn almost simultaneously? If yes, what is the limiting factor?

My question is focused on PC desktop, but I welcome any answer on different hardware (embedded systems, calculus clusters, etc.).

Read on softwareengineering.stackexchange.com

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.