[M3devel] ease of switching between pthreads and userthreads?
Daniel Alejandro Benavides D.
dabenavidesd at yahoo.es
Sun Apr 24 19:51:57 CEST 2011
Hi all:
In ref [2] it is claimed implemented stack walking exception handling for Modula-3 in SPINE using GCC 2.96 RT.
Can you watch it?
http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.23.8017
As also the strind schedulling for the SMP CPU
Thanks in advance
[1] D. Gough, S. Drew, K. J. Gough, and J. Ledermann, “Implementing Zero Overhead Exception Handling,” 1995.
[2] M. E. Fiuczynski, “Safe and efficient resource sharing in component-based systems,” University of Washington, 2004.
--- El sáb, 23/4/11, Tony Hosking <hosking at cs.purdue.edu> escribió:
> De: Tony Hosking <hosking at cs.purdue.edu>
> Asunto: Re: [M3devel] ease of switching between pthreads and userthreads?
> Para: "Jay K" <jay.krell at cornell.edu>
> CC: "m3devel" <m3devel at elegosoft.com>
> Fecha: sábado, 23 de abril, 2011 14:06
> Good point about lock. I really think
> this is the showstopper because compiled code will be fo a
> particular threading model.
>
> Sent from my iPhone
>
> On Apr 23, 2011, at 6:19 AM, Jay K <jay.krell at cornell.edu>
> wrote:
>
> > I've asked before. I'm asking again.
> >
> >
> > I'd like to be able to switch between userthreads and
> pthreads via a command line switch to the executable.
> > @M3pthreads @M3userthreads
> > or somesuch.
> >
> >
> > I'd also like to be able to switch the default via a
> line in a m3makefile that builds a program.
> >
> >
> > I know roughly what implementing this would look
> like.
> >
> >
> > I am a bit confused as to what problems
> -pthread/-pthreads/-lpthread causes.
> > I'll have to reread.
> > Whatever problem it has, this change probably would
> too.
> >
> >
> > I'm willing to implement this myself.
> > I'm not asking for anyone else to do it.
> >
> >
> > I understand it makes LOCK harder to efficiently
> inline.
> > If/when LOCK becomes partly inlined, provide a
> switch?
> >
> >
> > Thank you,
> > - Jay
> >
>
More information about the M3devel
mailing list