How to create multi process in Android using QT???
-
I have tried several ways.
first, Using QProcess.
Could I use this to achieve what I want?
I'd like to create child-process, such as fork()
But I could not find an example. The examples I found had to run some program.
ex) process->start("*.exe" ~~~~ blah blah
Is there a function I want in QProcess ??second, Using QT Android Sevice.
I have experience configuring Multi-Process System using NDK in Java-Android System.
So, I obviously believe this will work. But The examples are too poor. Cursing QT's Document!!!!!!!Can you answer my first question? If that's possible I can solve my problem very comfortably.
-
@ysbaekFox
QProcess
allows[v]fork-exec()
, i.e. it is indeed only for running a separate process. Assuming you mean fork-only, it won't do it.Do you perchance mean you want to look at QThread for multi-processing? Threading is like forking, but a touch different :) A reasonable overview in https://stackoverflow.com/a/16354658/489865
Whether you can do any of this under Android I would not know.
-
@ysbaekFox said in How to create multi process in Android using QT???:
Muti-Processing, not Multi-Threading
Take a Google of
qt multiprocessing
,qt multiple cpus
or similar.
Have a read of e.g. https://forum.qt.io/topic/6712/qt-multi-core-capability/ or https://elsampsa.github.io/valkka-examples/_build/html/qt_notes.html for some comments/ideas.