Device-os: Using threads in RTOS

Created on 16 Aug 2018  路  5Comments  路  Source: particle-iot/device-os


submission notes
Hello,
Is there any reason else but the ( memory wise thing )that made toy use threads than tasks in RTOS

**Important:** Please sanitize/remove any confidential info like usernames, passwords, org names, product names/ids, access tokens, client ids/secrets, or anything else you don't wish to share.

Please choose one of the following templates **Bug Report** or **Feature/Enhancement Request** and delete the other.

You may also delete this submission notes header if you'd like. Thank you for contributing!

Bug Report

Expected Behavior

What should it do?

Observed Behavior

What did it actually do?

Steps to Reproduce

How did you make it do that, and which system/user firmware versions were tested?

Test App

void setup() {
  // A minimal test case to reproduce the issue is super helpful!
}

void loop() {

}

References

Links to the Community, Docs, Other Issues, etc..


Feature/Enhancement Request

Please describe your use case in as much detail as possible. Background information and detailing what the feature will enable you to do, is especially helpful.

Most helpful comment

This may be helpful if you want to use threads:

https://github.com/rickkas7/particle-threads

All 5 comments

Can you expand on your question? Are you asking why we use Threads instead of Tasks?

yes Threads instead of Tasks why? is it the memory optimization or other purpose ?

Tasks are what FreeRTOS calls Threads. They have their own stack, their own execution state and are time-sliced between. They are threads, just with a different name.

This may be helpful if you want to use threads:

https://github.com/rickkas7/particle-threads

It looks like the original question has been resolved so I will close this. @Isawwad, should you need further clarification just leave a comment.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

larseggert picture larseggert  路  8Comments

jaredwolff picture jaredwolff  路  7Comments

rickschrader picture rickschrader  路  3Comments

memaskal picture memaskal  路  5Comments

technobly picture technobly  路  3Comments