473,320 Members | 1,699 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Threads an Modules

Hi

Is there a way to find out if a thread holds a handle to a loaded module?

In detail:
I have all IDs and handles of all running threads and loaded modules(dlls)
of a process.
No i want to know which thread uses which module.

My target is to make a taskmanager-like tool for WindowsCE.
There i have a big application running (some processes, which use different
DLL´s), and i need to know which part of this application needs most
CPU-Load.
It´s already possible for me to display which process has which threads and
how much CPU load they use, but in the end i need a connection between
threads and modules.

hope anyone can help me
Feb 6 '07 #1
2 1225
On Tue, 06 Feb 2007 13:50:46 +0100, Marco wrote:
Hi

Is there a way to find out if a thread holds a handle to a loaded module?

In detail:
I have all IDs and handles of all running threads and loaded modules(dlls)
of a process.
No i want to know which thread uses which module.

My target is to make a taskmanager-like tool for WindowsCE.
There i have a big application running (some processes, which use different
DLLŽs), and i need to know which part of this application needs most
CPU-Load.
ItŽs already possible for me to display which process has which threads and
how much CPU load they use, but in the end i need a connection between
threads and modules.

hope anyone can help me
Try a Microsoft-specific newsgroup, you're sure to find more
expertise for your problem there. This ng is for C++ *language* issues
only; the C++ language has no notion of threads, dlls, etc. so your
question is off-topic here.

--
Lionel B
Feb 6 '07 #2
"Lionel B" <me@privacy.netschrieb im Newsbeitrag
news:eq**********@south.jnrs.ja.net...
Try a Microsoft-specific newsgroup, you're sure to find more
expertise for your problem there. This ng is for C++ *language* issues
only; the C++ language has no notion of threads, dlls, etc. so your
question is off-topic here.

--
Lionel B
Ooops.. ok, thx ;)
Feb 6 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Maxwell Hammer | last post by:
An application I am developing executes many threads and then has a "monitor" part that waits for certain events. One of these events causes the application to have to shutdown. On shutdown the...
29
by: Jeffrey Maitland | last post by:
Hello all, I am in the process of writing a multithreading program and what I was wondering is a sleep command in an executing function will affect the threads below it? Here is a basic example...
2
by: Brett | last post by:
Let's say some one makes the argument that instead of multi threading an application, they say it's better just to make multiple applications. The app does the same thing for different modules. ...
10
by: [Yosi] | last post by:
I would like to know how threads behavior in .NET . When an application create 4 threads for example start all of them, the OS task manager will execute all 4 thread in deterministic order manes,...
7
by: David Rushby | last post by:
Consider the following program (underscores are used to force indentation): ------------------------------------------------ import atexit, threading, time def atExitFunc(): ____print...
9
by: jdlists | last post by:
I have inheirted some existing code, that i will explain in a moment, have needed to extend and ultimately should be able to run in threads. I've done a bunch of work with python but very little...
0
by: bernhard.voigt | last post by:
Dear list, I'm using two external modules (matplotlib and pyroot). Both are using different GUI threads (internally) Unfortunately, pretty soon after I've loaded both modules and made some...
1
by: rodmc | last post by:
Hi, I am writing a threaded application, part of which relies on sending messages to users. However I cannot get the smtplib and some other email related libraries to work inside threads (they...
23
by: =?GB2312?B?0rvK18qr?= | last post by:
Hi all, Recently I had a new coworker. There is some dispute between us. The last company he worked for has a special networking programming model. They split the business logic into...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.