Kontorotsui wrote:
>
> On 19-Oct-99 Nathan Meyers wrote:
> >> But is there a way to see when it is a thread and when it is a process? Or
> >> the
> >> only way is to notice it has the same resident/shared memory?
> > I haven't found a way. The closest thing I've found so far is to compare
> > the /proc/<pid>/maps files, which are identical for two threads of the
> > same process but unlikely to be identical for different processes.
>
> Ok, not a trivial way. I wonder why a /proc subdirectory regarding threads was
> not added.
I'm not convinced threads are fully cooked. I've noticed strange
problems with profiling: the system call times() doesn't accurately
report CPU time for a multi-threaded application, and using the JDK1.2
hprof profiler doesn't appear to charge CPU time to the correct JVM
thread.
Nathan
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]