Multi-Threading with Rhodes

Does anyone know how multi-threading work with Rhodes? Are there any Rhomobile tutorial for multi-threading programming?

Thank you for your help.

Gerbrand Stap
Ruby thread do , instead you

Ruby thread do , instead you can use Rho::Timer.

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Evgeny Vovchenko
You should be able to use

You should be able to use Ruby Threads

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


William Anton
I know about Ruby

I know about Ruby threads

Actually I wonder what could be the best choice for Rhodes Applications: Green Threads or OS level threads

MRI (Reference of Ruby Implementation) use green threads. The only choice to use OS level thread should be JRuby. But What consequences within a Rhodes Application. If JRuby is used is there any limit in Cross-Platform Deployement (I think about Iphone for example)?

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Evgeny Vovchenko
Rhodes use built-in Ruby VM 1

Rhodes use built-in Ruby VM 1.9.2, you cannot use JRuby with Rhodes

RubyVM 1.9.2 use native threads (OS Level threads) to implement Ruby threads

You can also use Native extension to use any threads you wish:

http://docs.rhomobile.com/rhodes/extensions

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Log in to post comments