Re: thread rant

From: Ingo Molnar (mingo@elte.hu)
Date: Sat Sep 02 2000 - 03:19:59 EST


On Fri, 1 Sep 2000, dean gaudet wrote:

> yup you can do this without threads. apache-1.3+mod_ssl for example.
>
> but it's not fun, and it's a lot more work on the portability side.
> inter-process shared memory and inter-process semaphores are
> notoriously different across platforms... [...]

but it's slower (on SMP) and more error-prone to use threads. We have the
following task: 'use multiple contexts and share some state'. The 'share
everything' model overdoes this goal a bit. Why not share the *specific*
state that should be shared, and nothing more? The fact that this is
inconsistent across platforms is IMHO not a good excuse - it just shows
the mistaken concept that threads should be used for such tasks. You are
right about the semaphore part - i have plans to add a new type of
semaphore to Linux, which are not as complex as SysV semaphores and are
not persistent.

        Ingo

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



This archive was generated by hypermail 2b29 : Thu Sep 07 2000 - 21:00:12 EST