Lua :: How to write simple program that will load multiple CPUs?

Viewed 18989

I haven't been able to write a program in Lua that will load more than one CPU. Since Lua supports the concept via coroutines, I believe it's achievable.

Reason for me failing can be one of:

  • It's not possible in Lua
  • I'm not able to write it ☺ (and I hope it's the case )

Can someone more experienced (I discovered Lua two weeks ago) point me in right direction?


The point is to write a number-crunching script that does hi-load on ALL cores... For demonstrative purposes of power of Lua.

Thanks...

6 Answers
Related