Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Jul 2003 22:46:52 +0300
From:      "Petri Helenius" <pete@he.iki.fi>
To:        "Chris Knight" <chris@e-easy.com.au>, "'Kai Mosebach'" <kai.mosebach@freshx.de>, <freebsd-threads@freebsd.org>
Subject:   Re: LinuxThreads replacement
Message-ID:  <004d01c348ae$583084f0$812a40c1@PETEX31>
References:  <007601c3467b$5f20e960$020aa8c0@aims.private>

next in thread | previous in thread | raw e-mail | index | archive | help
> 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.

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.

Pete



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?004d01c348ae$583084f0$812a40c1>