Answer the question
In order to leave comments, you need to log in
Parallel execution of threads in PySide?
Hello.
For my term paper, I am writing an application that, roughly speaking, should calculate each next state of the cellular automaton and display it on the screen from time to time. I decided to parallelize the calculations - I created my own MyThread class, inherited it from QRunnable. I created an array of two objects of the MyThread class and from time to time I launch them for execution in this way:
for w in self.__workers:
QtCore.QThreadPool.globalInstance().start(w)
QtCore.QThreadPool.globalInstance().waitForDone()
QtCore.QThreadPool.globalInstance().setMaxThreadCount(3)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question