Re: Is kernel aware of pthreads ?
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Sudarshan S writes:
A multi-threaded user process makes a system call and control comes to kernel extension ( I mean proc_self( ) gives me the pid of the user process). If the kernel extension blocks using msleep( ), does it block the entire process or does it block only a specific thread of that process that is making a call. I am trying to understand the threading model implemented in Tiger.
It may depend somehow on how the control gets to the kernel extension, but I can confirm that a sleep (IOLockSleepDeadline()) in an IOKit driver reached via a BSD ioctl blocks only the calling thread, and not the entire process. Drew _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
Andrew Gallatin