A wired thread (vm_wire) has special vm rules inside the kernel. It's got
nothing to do with what you might expect (tying a cthread to a kernel
thread).

Thomas


On Mon, Apr 30, 2012 at 4:30 PM, Thomas Thomas <ricinw...@yahoo.com> wrote:

> So, mach-defpager "wires" all of its threads. What exactly does that mean?
> I think the headers are kind-of sketchy. They do say that in GNU all
> threads
> are wired, will this apply to pthread threads, too?
>
> Nextly, it uses cthread_data to store a pointer to a thread-specific buffer
> that it uses in paging. As I see it: all threads are created when the pager
> starts up, and no threads are created afterward. Thus, I could achieve the
> same result by using a hash to map between the thread handles and the
> buffer pointers. Would this be a good idea/efficient? Mainly, I just want
> your thoughts.
>
>
> I'll leave it at this...
>
> Thomas D
>
>
>

Reply via email to