Hey,
On 3/27/07, Stephen Hahn <[EMAIL PROTECTED]> wrote:
> I have noticed a function thread_exit() within thread.c. Is this function
called each time a thread is exited?
Given your mention of processes, I think you want lwp_exit().
I thought that there was a one-to-one mapping of threads on
light-weight processes. So in my understanding when a lwp exits, the
thread will exit as well. Why is this not the case, or what are the
differences then?
> Is there a similar function for the termination of a process?
proc_exit() in uts/common/os/exit.c. As others have hinted, the
easiest way to figure out resource consumption is to sidle up beside
the existing accounting calls (acct() and exacct_commit_proc() for
processes, term_mstate() for lwps).
I will look at the accounting functions, but I am not entirely sure
whether this is easier for us, given the fact that we are within a
simulator.
Thanks, thomas
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code