Re: Threading and Assebly




"BT" <BT@xxxxxxxxxxxxxxxxxxxxxxxxx> schrieb im Newsbeitrag
news:4CE149D3-746A-4942-AAB8-D9285DCAE553@xxxxxxxxxxxxxxxx
Hi,

i dont think that this is possible by os and framework design.
As i said before, you need to have some sort of self-written
context manager for your threads and i really dont know what
such a feature, being able to get the threads origin assembly
would be good for. You could trace the Thread Creation and
assign it to a function backtracking the call on the call stack
and assign the function or code segment that created the thread
to a particular assembly in your app, but that would be a
difficult task and once again: What is that good for? Please
can you tell me since i dont know what this would be good for,...

Hi Kerem,

Yes I think also that It should be difficult to identify the assembly that
has created a thread. More, in managed code, the MISL is 'compiled' just
in
time and nothing says if the code from different assemblies are not
compiled
in the same code segment. Perhaps that the framework has a means to
register
a callback for the thread creation ??

Best regards.

Hi BT (what does this stand for?),

so what does this say to us: Forget it!

You can walk the code with an disassembler like Smidgeonsoft's Debugger
which is an excellent debugger and capable of reading .NET Code. But it
is really unnecessary to know what and who raised some thread. But i
really want to know what the Original Creator of this thread wanted to
do with such a feature,...

Write your own OS and implement your own executive with your own
object manager and process/thread management. Do some tree-like
linked-list for your threads and you get your thread "family-tree",.. :-)

Regards

Kerem



Beste Grüsse / Best regards / Votre bien devoue


Kerem Gümrükcü
kerem.g@xxxxxxxxxxxxxxxxxxx
Best Quote: "Ain't nobody a badass with a double dose
of rock salt...", Kill Bill Vol.2

Latest Open-Source Project: http://sourceforge.net/projects/checkdiskshell
Thats me at work: http://www.pro-it-education.de/staff/keremg/
Pro-IT Education http://www.pro-it-education.de/
Professional IT-Training and Consulting

-----------------------
"This reply is provided as is, without warranty express or implied."


.