Pages: [1]   Go Down
Author Topic: multi threading library for arduino ?  (Read 2641 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Full Member
***
Karma: 2
Posts: 157
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi
Is there any multi threading library for arduino ?
Or any RT OS that is suitable for arduino and will enable multi threading ?

Thanks
elico
Logged

Gosport, UK
Offline Offline
Faraday Member
**
Karma: 21
Posts: 3113
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

What exactly do you want to do, that you think multi-threading is required, as this is the second time you've asked this question?
Logged

Ontario
Offline Offline
God Member
*****
Karma: 24
Posts: 860
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

A good place to start is in the playground (http://arduino.cc/playground/Main/LibraryList), scroll down to "Schedulers and Pseudo Operating Systems"
Logged

UK
Offline Offline
Shannon Member
****
Karma: 222
Posts: 12541
-
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

If you need to use multithreading to implement your solution then Arduino is probably not a suitable platform for it.
Logged

I only provide help via the forum - please do not contact me for private consultancy.

Global Moderator
Offline Offline
Brattain Member
*****
Karma: 474
Posts: 18696
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Similar to this?

http://arduino.cc/forum/index.php/topic,91169

For multithreading you really need a processor that supports pre-emptive multitasking. The Atmega328 is not such a platform.
Logged

New Jersey
Offline Offline
Faraday Member
**
Karma: 65
Posts: 3638
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

What exactly do you want to do, that you think multi-threading is required, as this is the second time you've asked this question?

I think it's three now. Perhaps what the OP means by multithreading is asking the same question in multiple threads?  smiley-wink
Logged

Global Moderator
Offline Offline
Brattain Member
*****
Karma: 474
Posts: 18696
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Other threads:

http://arduino.cc/forum/index.php/topic,91169
http://arduino.cc/forum/index.php/topic,91130

Also:

I need fast and exact actions to be taken .

Is it possible to insert assembly code within the C code ?

OK enough of this mumbo-jumbo. You want multi threading. You want fast and exact actions. You want assembler.

What are you doing exactly that requires all this?

Sounds like you are working on the solution, but don't have a problem.
Logged

0
Offline Offline
God Member
*****
Karma: 2
Posts: 596
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

ChibiOS Arduino port:

http://arduino.cc/forum/index.php/topic,87552.0.html

FreeRTOS Arduino port:

http://arduino.cc/forum/index.php/topic,77362.0.html

Logged

Salem, Oregon
Offline Offline
Sr. Member
****
Karma: 7
Posts: 307
Friends don't let friends use Strings
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Don't forget BeRTOS (http://www.bertos.org/)
Logged

Pages: [1]   Go Up
Jump to: