Pages: [1]   Go Down
Author Topic: multi threading library for arduino ?  (Read 2940 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Full Member
***
Karma: 2
Posts: 158
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
Online Online
God Member
*****
Karma: 25
Posts: 915
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: 223
Posts: 12630
-
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
Melbourne, Australia
Offline Offline
Brattain Member
*****
Karma: 511
Posts: 19367
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

http://www.gammon.com.au/electronics

Please post technical questions on the forum - not to me by personal message. Thanks a lot.

New Jersey
Offline Offline
Faraday Member
**
Karma: 72
Posts: 3764
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
Melbourne, Australia
Offline Offline
Brattain Member
*****
Karma: 511
Posts: 19367
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

http://www.gammon.com.au/electronics

Please post technical questions on the forum - not to me by personal message. Thanks a lot.

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: 310
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: