2008/9/14 Esteban Lorenzano <estebanlm@gmail.com>:
Hi,
I need some help/advice for a plugin I'm writing.
I'm already downloaded VMMaker and managed to compile a new VM in OS/X, and
I already write and compile and test a simple plugin (and I have to say the
process is very simple, and all my problems were because I never used Xcode
before), but now, with the plugin running, comes the "optimization" phase,
and there I have many doubts:
1) An external plugin blocks the VM when primitive is called? if so, how do
I manage to avoid this?
No way. Primitive implements the behavior of your method. You can't
run interpreter before it will return.
Of course you can use pthreads: create own native thread and pass all
you need to this thread using own synchronization scheme. Then you can
avoid blocking. But this comes handy if your task is parallelisable.
Some are simply can't be parallelised.