Threads

23 Dec 2009

Hello all,

How would I achieve something similar to threading on mbed?

Thank you!

Angel

23 Dec 2009

Hello Angel

Depending on how demanding your requirements are, you could use coroutines, where each "thread" calls each other.

Simon Tatham (of PuTTY fame) has a good walkthrough here: http://www.chiark.greenend.org.uk/~sgtatham/coroutines.html

Cheers,

Tim

 

 

23 Dec 2009

Not in the online compiler, but there are a couple of RTOS available for LPC chips. They have a notion of "tasks" which are similar to threads.

23 Dec 2009 . Edited: 24 Dec 2009

Thank you!

I'll give it a try.

Angel