Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. How to create multi process in Android using QT???

How to create multi process in Android using QT???

Scheduled Pinned Locked Moved Solved Mobile and Embedded
5 Posts 2 Posters 834 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Y Offline
    Y Offline
    ysbaekFox
    wrote on last edited by aha_1980
    #1

    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.

    JonBJ 1 Reply Last reply
    0
    • Y ysbaekFox

      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.

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by JonB
      #2

      @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.

      1 Reply Last reply
      2
      • Y Offline
        Y Offline
        ysbaekFox
        wrote on last edited by
        #3

        Thank you. But I need Muti-Processing, not Multi-Threading.
        Just letting me know that QProcess can't accomplish what I want is really helpful. :)

        JonBJ 1 Reply Last reply
        0
        • Y ysbaekFox

          Thank you. But I need Muti-Processing, not Multi-Threading.
          Just letting me know that QProcess can't accomplish what I want is really helpful. :)

          JonBJ Offline
          JonBJ Offline
          JonB
          wrote on last edited by JonB
          #4

          @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.

          Y 1 Reply Last reply
          1
          • JonBJ JonB

            @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.

            Y Offline
            Y Offline
            ysbaekFox
            wrote on last edited by
            #5

            @JonB

            Your opinion probably won't work on QT-Android. I will implement a Multi-Process using QT Android Service.

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved