Sony's Developer World forum

    • Home
    • Forum guidelines

    Multi threading

    Spresense
    2
    2
    240
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      Chandasri G last edited by Chandasri G

      Is multi-threading possible in SDK-CLI as it has to be written in C language?
      can we use pthreads library for multiple threads

      C 1 Reply Last reply Reply Quote
      • C
        CamilaSouza DeveloperWorld @Chandasri G last edited by

        Hi, @Chandasri-G
        Yes, multi-threading is possible using SDK-CLI. You can use asymmetrical (ASMP) or symmetrical (SMP) multiprocessing.

        @KamilTomaszewski gave a very good answer about multiprocessing in Spresense in the Questions regarding Multiprocessing topic.
        Please refer to it to read further details.

        You can use the pthreads library when using SMP (symmetric multiprocessing). SMP is controlled by Nuttx, so you just have to enable it and assign how many cores you want to allocate for it.

        Let me know if I can help you any further.

        1 Reply Last reply Reply Quote
        • First post
          Last post
        Developer World
        Copyright © 2021 Sony Group Corporation. All rights reserved.
        • Contact us
        • Legal