Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Jul 2003 10:58:50 -0700
From:      Terry Lambert <tlambert2@mindspring.com>
To:        Petri Helenius <pete@he.iki.fi>
Cc:        freebsd-threads@freebsd.org
Subject:   Re: LinuxThreads replacement
Message-ID:  <3F12EF5A.71249E4D@mindspring.com>
References:  <007601c3467b$5f20e960$020aa8c0@aims.private> <004d01c348ae$583084f0$812a40c1@PETEX31>

next in thread | previous in thread | raw e-mail | index | archive | help
Petri Helenius wrote:
> > get up to speed with thread implementations. Is it just me, or
> > are threads just a complete evil, which very few people
> > understand correctly and are able to implement and/or use them
> > correctly?
> 
> Threads are harder to understand and debug. Once you get to think
> in threads it actually helps productivity and creates simpler programs
> because you can create a thread for a task instead of going trough
> dozens of condition statements every time you return from a select or
> similar. Other such advantages exist.

Threads are for people who can't write finite state automatons.


> Also, since future CPUs and systems are likely to have more parallel
> execution units, threaded programs are ready to take advantage
> of such beasts if your memory coherency protocol does not eat up
> your performance.

SMP scaling is an argument for threads.  It's also an argument for
processes.

-- Terry



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3F12EF5A.71249E4D>