When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.
8 messages · Page 1 of 1 (latest)
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.
That's roughly it but you simply hand out different files to the other threads, so there is no need for locking.
or was your idea a function will first read through all files/subdirectories in a directory and then give out directories/files to threads?
Yes. Or you can create a work queue.
Yes it's roughly like that.
Just two threads that pick up the jobs as they are available.
@teal zodiac You should also ask yourself if you even need multithreading, i.e. whether your performance is CPU or I/O bound.
If it's I/O bound (i.e. limited by the speed of your hard drive) then multithreading can actually worsen performance, especially so if the hard drive in question is a HDD
Meh, okay
Thank you and let us know if you have any more questions!
This thread is now set to auto-hide after an hour of inactivity