On Sun, Dec 2, 2012 at 2:59 PM, drush66 <davorin.rusevl...@gmail.com> wrote:

> Would it be possible to start native thread inside pharo? This thread would
> run (for quite a long time) some event loop (like the libev), and post some
> info to the SharedQueue. Smalltalk code would in turn be reading stuff from
> this queue. You could say it would be pumping events from libev to
> SharedQueue instance for Smalltalk code to consume.
>
> Is this doable? With NativeBoost or Plugin?
>
> I have also found some info on threaded VM, but if I understand it
> correctly
> it seems more oriented to provide a thread to execute FFI call on it.
>

I wouldn't say that.  The threading scheme is David Simmons' architecture,
used in his AOS and S# VMs and similar to that used in the python VM, but
more efficient.  It allows multiple threads to share the VM, but only
allows one to run Smalltalk at any one time.  It is designed to allow
Smalltalk to interact freely with any number of native threads.  Cal-backs
can come in from any thread.  SMalltalk processes can be associated with
specific threads, allowing one to control which thread a call-out is made
on.

-----
> http://www.cloud208.com/
> --
> View this message in context:
> http://forum.world.st/using-a-long-running-native-thread-NativeBoost-or-Plugin-tp4657747.html
> Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
>
>


-- 
best,
Eliot

Reply via email to