Hey Mladen,

I'm not sure what you mean by a kernel process, but you can wait for
processes to complete using /proc and we ship pwait(1) which takes a pid
and returns once that process exists.

Adam

On Mon, Jan 22, 2007 at 05:02:52AM -0800, Mladen Nikitovic wrote:
> Hi,
> 
> I want to detect when a process (both user or kernel) terminates. The book 
> "Solaris Internals" points to functions exitlwps() and lwp_exit() but I'm 
> unsure whether all kinds of process/thread terminations will arrive at these 
> functions, or should I look into the general kernel exit() function?
> 
> The general idea is that I want to measure the execution time of a process 
> among other processes in a multiprogrammed workload. I can detect when 
> task/process/thread is released but not terminated...which makes it hard to 
> measure execution time =)
> 
> Best Regards,
> Mladen
>  
>  
> This message posted from opensolaris.org
> _______________________________________________
> opensolaris-code mailing list
> [email protected]
> http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

-- 
Adam Leventhal, Solaris Kernel Development       http://blogs.sun.com/ahl
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to