[Mono-list] pthreads in mono

Chris Howie cdhowie at gmail.com
Thu Mar 27 22:20:57 EDT 2008


On Thu, Mar 27, 2008 at 9:33 AM, Andreas Färber <andreas.faerber at web.de> wrote:
> So are you implying there are some cases (apart from Windows) where a
> MonoThread/System.Threading.Thread is not a pthread but some non-
> pthread userland thread, like in Java IIRC? Or what did you mean by
> "doesn't support"?

I meant that AFAIK, Mono provides no mechanism to interact with
pthreads directly, for example obtaining a pthread_t* for a specific
thread.  Whether this can be done by p/invoking to libpthread is
beside the point.

My main point (that I probably failed to stress) was that bending over
backwards to wrap an API using a type of thread that may only exist on
one CLR would be a very broken wrapper indeed -- I doubt such a
wrapper would run on Microsoft's implementation, for example.

-- 
Chris Howie
http://www.chrishowie.com
http://en.wikipedia.org/wiki/User:Crazycomputers


More information about the Mono-list mailing list