[android-developers] LogCat and threads

2010-09-22 Thread john brown
Hello, I am trying to understand threads and how they work, and when, etc. I expected the pid in LogCat to be different in the background thread logs but the pid is always the same. Is the pid something other than the thread ID? If it is, is there a way to indicate the thread ID in LogCat?

Re: [android-developers] LogCat and threads

2010-09-22 Thread Kostya Vasilyev
Process is not the same as thread. A process can have many threads, and they all share the same data. This is really convenient, since you can reference Java objects from any thread, regardless of which thread created them. Processes, on the other hand, do not share each other's memory state - so