Re: Is kernel aware of pthreads ?
Re: Is kernel aware of pthreads ?
- Subject: Re: Is kernel aware of pthreads ?
- From: Andrew Gallatin <email@hidden>
- Date: Wed, 1 Feb 2006 09:06:40 -0500 (EST)
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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden