Re: why change: from proc to thread?

2002-05-27 Thread Julian Elischer



On Mon, 27 May 2002, kai ouyang wrote:

> Hi,everybody
>   I found many v_operations, such as VOP_UNLOCK, VOP_OPEN., there
> all have a parameter(struct proc) in FreeBSD4.x, but, there all be
> changed to thread in FreeBSD5.0. why? And what relation of the proc
> and thread ?
>   Thank you!
> 

FreeBSD is plannig on supporting threads at a kernel level.
To do this, the basic scheduling element becomes the thread instead of the 
process. For this reason, for example, locks must be held by threads
instead of processes, and contexts are owned by threads instead of
processes. This means that most functions will need a thread pointer
instead of a process pointer. The "process" becomes basically an
accounting abstraction and the holder of resources, where most of the
kernel is more interested in the thread.

Each process has at least one thread, possibly many. Each thread is
associated with exactly one process.



julian



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: why change: from proc to thread?

2002-05-27 Thread Kris Kennaway

On Mon, May 27, 2002 at 02:56:50PM +0800, kai ouyang wrote:
> Hi,everybody
>   I found many v_operations, such as VOP_UNLOCK, VOP_OPEN., there all have a 
>parameter(struct proc) in FreeBSD4.x, but,  
> there all be changed to thread in FreeBSD5.0. why? And what relation of the proc and 
>thread ?  
>   Thank you!

Search the archives for information about KSE.

Kris

P.S. Please wrap your lines at 70 characters in future so your emails
are readable.



msg38837/pgp0.pgp
Description: PGP signature


why change: from proc to thread?

2002-05-26 Thread kai ouyang
Hi,everybody   I found many v_operations, such as VOP_UNLOCK, VOP_OPEN., there all have a parameter(struct proc) in FreeBSD4.x, but,  there all be changed to thread in FreeBSD5.0. why? And what relation of the proc and thread ?    Thank you!Best RegardsOuyang Kai´ÓÍøÕ¾µÃµ½¸ü¶àÐÅÏ¢¡£MSN Explorer Ãâ·ÑÏÂÔØ£ºhttp://explorer.msn.com/lccn