About Nesting Threads
-
Hi,
As you already know there is couple of approaches to Threading in Qt.(Inheriting QThread, using QThreadPool etc.) Well this question is not really about the code, it's about design.
Let's say we have more than one QStringLists(like 5) and each of them has hundreds of elements. I want to do something time consuming with each QStringList.(parsing elements)
Well I'm wondering is QtConcurrent or QThreadPool supports to use multiple available threads to parse the QStringList.
in example,
Our max thread count is 48.
We have 3 lists. So 48 - 3 = 45 threads left.
We need to do create 15 threads that run a parsing function for each list.
The function takes an element of a list. So all 15 threads should work with different elements.Sorry for bad English.
-
Hi and welcome to devnet,
The only answer is; maybe. You don't explain what you want to do with your strings.