Re: Share Wait Queue between different modules ?

From: Steven Rostedt
Date: Mon May 16 2005 - 12:05:38 EST


On Mon, 2005-05-16 at 16:11 +0100, Dinesh Ahuja wrote:
> Hi ,
>
> Just trying to explore a situation where different
> modules may need to share same wait queues. Could
> anyone tell me the pratical situation where we need to
> have above mentioned situation ?
>

Have an example of this situation?

> Please clarify me on below point :
> We say that kernel stack is very much limited around
> 8KB.
> Does all the running processes share this stack or
> each process has 8KB of the space which process can
> access when it is running in kernel mode.
>

The later. Each process has its own kernel stack when in kernel mode.

> Sharing wait queues will be difficult if the kernel
> space is 8KB for all the ready processes because then
> the no of wait_queue_t elements which can be added
> will be limited.
>

As mentioned above, each process has its own kernel stack.


-- Steve


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/