Is there a way to determine how much memory a single thread is using? I realize that this may be weird, since threads share memory, but is it possible to determine how much memory was allocated by a specific thread? Is it possible to limit memory usage of a thread?