Re: Threads are processes that share more

From: Stephen Satchell (satch@fluent-access.com)
Date: Wed Jun 20 2001 - 17:08:52 EST


At 08:48 PM 6/20/01 +0200, Martin Devera wrote:
>BTW is not possible to implement threads as subset of process ?
>Like thread list pointed to from task_struct. It'd contain
>thread_structs plus another scheduler's data.
>The thread could be much smaller than process.
>
>Probably there is another problem I don't see, I'm just
>currious whether can it work like this ..

Threads would then run, as a group, at the priority of the process, and
then by priority within the process thread group. To be truely useful,
threads need to be able to have their run priority divorced from the
priority of the spawning process.

By the way, I'm surprised no one has mentioned that a synonym for "thread"
is "lightweight process".

Satch

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



This archive was generated by hypermail 2b29 : Sat Jun 23 2001 - 21:00:29 EST