Simpile question on threads

This is a discussion on Simpile question on threads within the Windows Programming forums, part of the Platform Specific Boards category; THREADENTRY32 doesn't have have any thing for seeing the size of the thread does anyone know a way?...

  1. #1
    Registered User Josh Kasten's Avatar
    Join Date
    Jul 2002
    Posts
    109

    Question Simpile question on threads

    THREADENTRY32 doesn't have have any thing for seeing the size of the thread does anyone know a way?
    int a; don't make a program without it.

  2. #2
    mustang benny bennyandthejets's Avatar
    Join Date
    Jul 2002
    Posts
    1,401
    What does 'have have' mean?

    What do you mean by 'size' of a thread?
    benforbes@optusnet.com.au
    Microsoft Visual Studio .NET 2003 Enterprise Architect
    Windows XP Pro

    Code Tags
    Programming FAQ
    Tutorials

  3. #3
    Registered User Josh Kasten's Avatar
    Join Date
    Jul 2002
    Posts
    109
    Sorry about the "have have".
    Isn't a thread basicly a process?
    You can get the size of a process why not a thread?
    Isn't a thread part of a process?
    What I want to do is to be able to read the RAM a program and its threads uses so how would I do this?
    int a; don't make a program without it.

  4. #4
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,789
    Originally posted by Josh Kasten
    Isn't a thread basicly a process?
    No

    Originally posted by Josh Kasten
    You can get the size of a process why not a thread?
    You can get the size of a processes address space = 2 ^ 32 on most current windows machines. I think you meant the size of an execuatable?

    Originally posted by Josh Kasten
    Isn't a thread part of a process?
    Yes.....1 process can have numerous threads, but not less than 1

    Originally posted by Josh Kasten
    What I want to do is to be able to read the RAM a program and its threads uses so how would I do this?
    Lots of ways.....ReadProcessMemory for instance....but I suggest you first study what Processes & threads are and also learn about how Address Spaces operate. A good book by Jeff Richter will help you out

  5. #5
    Registered User Josh Kasten's Avatar
    Join Date
    Jul 2002
    Posts
    109
    do you know a good tut instead of a book? I don't want to buy a book on just that.
    int a; don't make a program without it.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. A Question about Locks in Linux Threads
    By Overworked_PhD in forum Linux Programming
    Replies: 2
    Last Post: 11-05-2007, 03:20 AM
  2. Design layer question
    By mdoland in forum C# Programming
    Replies: 0
    Last Post: 10-19-2007, 05:22 AM
  3. Question...
    By TechWins in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 07-28-2003, 10:47 PM
  4. Question about threads
    By revelation437 in forum C++ Programming
    Replies: 13
    Last Post: 06-11-2003, 04:17 PM
  5. opengl DC question
    By SAMSAM in forum Game Programming
    Replies: 6
    Last Post: 02-26-2003, 09:22 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21