[Mono-devel-list] Stopping threads from within the runtime? ( fwd)

Derek Woo derek at eecg.toronto.edu
Thu Aug 19 02:38:24 EDT 2004


Yes, but I would be looking more for an approach that would work online. A
background thread would wakes up periodically, stop the world momentarily,
and then resume the world. Instinct tells me to go find similar things
from the GC, hopefully some guidacne would lead me to the right direction.

regards,
Derek

On Thu, 19 Aug 2004 Rob.Tillie at Student.tUL.EDU wrote:

> Hey,
> Wouldn't a debugger also show this behavior?
>
> Greetz,
> -- Rob.
>
> > -----Original Message-----
> > From: Derek Woo [mailto:derek at eecg.toronto.edu]
> > Sent: Thursday, August 19, 2004 12:48 AM
> > To: mono-devel-list at lists.ximian.com
> > Subject: [Mono-devel-list] Stopping threads from within the runtime? (fwd)
> >
> > Hi,
> >
> > I might have incorrectly posted to mono-list about this so bear with me if
> > that is not the place to be. My problem follows:
> >
> > I am using mono for research. I am figuring if it is possible, in the
> > runtime (i.e. the 'C' world), to suspend all user/system threads?
> >
> > I would like to freeze the whole runtime execution and gather information,
> > and then let execution resume. I would imagine the GC would do something
> > similar. The closest I found are 2 methods:
> >
> > mono_gc_start_world()
> > mono_gc_stop_world()
> >
> > However, it doesn't seem to behave the way I expect. If any JIT/runtime
> > people could give me a hint, it would be greatly appreciated.
> >
> > Thanks very much
> > -Derek
> >
> >
> > _______________________________________________
> > Mono-devel-list mailing list
> > Mono-devel-list at lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/mono-devel-list
>



More information about the Mono-devel-list mailing list