Sony's Developer World forum

    • Home
    • Forum guidelines

    Upcoming maintenance 

     

    Dear Customers and Partners.

    This website will be undergoing scheduled maintenance on June 14, 2023. Please be aware there may be disruption to the developer portal website and associated services during the scheduled maintenance period.

    This upgrade is essential to ensure the continued performance, reliability, and security of Developer World.

    We apologize for any inconvenience.

     

     

    Multi threading

    Spresense
    2
    2
    1290
    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