How to get thread used memory size?
-
m_hThread1 = CreateThread(NULL, 0, ThreadFun1, this, 0, &m_dw1); // thread 1 m_hThread2 = CreateThread(NULL, 0, ThreadFun2, this, 0, &m_dw2); // thread 2
How to get thread 1 using memory size when program run. -
m_hThread1 = CreateThread(NULL, 0, ThreadFun1, this, 0, &m_dw1); // thread 1 m_hThread2 = CreateThread(NULL, 0, ThreadFun2, this, 0, &m_dw2); // thread 2
How to get thread 1 using memory size when program run.yoda speak ?!!? Sure i am not what talking you are. Seriously, it depends what the thread is doing; and normally, it's the same way as find finding out what the current/main thread is doing.
Maximilien Lincourt Your Head A Splode - Strong Bad
-
m_hThread1 = CreateThread(NULL, 0, ThreadFun1, this, 0, &m_dw1); // thread 1 m_hThread2 = CreateThread(NULL, 0, ThreadFun2, this, 0, &m_dw2); // thread 2
How to get thread 1 using memory size when program run.Hi, a thread does not use memory, except for its stack; when it creates some objects, they will occupy some memory, but they do not belong to the thread, and they sit in the heap, common to all threads of the process. :)
Luc Pattyn [Forum Guidelines] [My Articles]
This month's tips: - before you ask a question here, search CodeProject, then Google; - the quality and detail of your question reflects on the effectiveness of the help you are likely to get; - use PRE tags to preserve formatting when showing multi-line code snippets.
-
yoda speak ?!!? Sure i am not what talking you are. Seriously, it depends what the thread is doing; and normally, it's the same way as find finding out what the current/main thread is doing.
Maximilien Lincourt Your Head A Splode - Strong Bad
Maximilien wrote:
yoda speak ?!!? Sure i am not what talking you are.
Or: What you are talking about, I am not sure of.
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne