List Info

Thread: Native Thread extension for 1.8




Native Thread extension for 1.8
user name
2006-11-03 05:06:19
Hello,

Due to certain requirement, I was thinking of doing a native
thread
extension for ruby, basically an extension written in C
which would
wrap pthread (linuxthreads/nptl). Doing so I found out there
are
various components in the core interpreter which are not
really thread
safe like parser globals, interpreter context etc. resulting
in
various race conditions on using native threads.

Any suggestions on this will very really helpful or is it at
all
possible to write an extension for ruby 1.8 wrapping the
pthread APIs
without touching the core interpreter?

-abhisek

Native Thread extension for 1.8
user name
2006-11-08 19:08:25
On 11/3/06, Abhisek Datta <abhisekrubyforge.org> wrote:
> Due to certain requirement, I was thinking of doing a
native thread
> extension for ruby, basically an extension written in C
which would
> wrap pthread (linuxthreads/nptl). Doing so I found out
there are
> various components in the core interpreter which are
not really thread
> safe like parser globals, interpreter context etc.
resulting in
> various race conditions on using native threads.
>
> Any suggestions on this will very really helpful or is
it at all
> possible to write an extension for ruby 1.8 wrapping
the pthread APIs
> without touching the core interpreter?

To the best of my knowledge, this is not possible.

-austin
-- 
Austin Ziegler * halostatuegmail.com * http://www.halostatue.ca/
               * austinhalostatue.ca * http://www.halostatue.
ca/feed/
               * austinzieglers.ca

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )