Re: Suspending thread switching while inspecting stacks
Dragiša Durić <[email protected]> Fri, 05 Dec 2003 19:22:26 +0100
| Newsgroups | gmane.comp.lib.phil |
|---|---|
| Message-ID | <[email protected]> |
Deeper reading of archives, .h files and man pages helped me to find about pthread_kill. It will do for suspend and resume of threads. What I did not find is a way to get top of used stack, by pthread_t (there is typo in my first message). Is there and elegant (or any) way to get this information for running thread? Thanks, dd Дана пет, 05-12-2003 у 12:15, Dragiša Durić је написао: > For Modula-3 runtime to work correctly in NPTL threaded environment, I > have to make thread stack image scanning atomic so garbage collector can > scan for traced pointers in local variable storage space for every > thread, while suspending thread switching. For this to work, I have to: > > 1. suspend thread switching; > 2. get address of used stack area by pthread_thread_t, for every > stack; > 3. resume thread switching; > > Is this doable with nptl? > > Thanks, > dd > >