ptrace & threads

John jwd at bsdwins.com
Fri Jul 18 06:25:11 PDT 2003


----- Julian Elischer's Original Message -----
> It is teh nextthing to look at..
> The ptrace interface doesn't extend to coverthreads at all.
> We willneed to design somewhole new system..
> One posibility is the benedict arnold thread(*), that
> talks with the debugger and controlls teh other threads..

Well, hoping not to create a NIH discussion, but OS/2 had/has
a nice interface for thread debugging. Used it years ago as
a model for setting up an environment on the mainframe (vm).

One thing to remember, a failed thread on one cpu has no effect
on any threads running on other physicals.  You literally
need a way to control how many threads can run in parallel, how
many physical cpus they can use, and in some circumstances,
logicals.

-John



More information about the freebsd-hackers mailing list