From owner-freebsd-threads@FreeBSD.ORG Sat Jul 12 12:47:46 2003 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BBA7E37B401 for ; Sat, 12 Jul 2003 12:47:46 -0700 (PDT) Received: from silver.he.iki.fi (silver.he.iki.fi [193.64.42.241]) by mx1.FreeBSD.org (Postfix) with ESMTP id BB90543FDD for ; Sat, 12 Jul 2003 12:47:45 -0700 (PDT) (envelope-from pete@he.iki.fi) Received: from PETEX31 (h81.vuokselantie10.fi [193.64.42.129]) by silver.he.iki.fi (8.12.9/8.11.4) with SMTP id h6CJkqsL070844; Sat, 12 Jul 2003 22:46:54 +0300 (EEST) (envelope-from pete@he.iki.fi) Message-ID: <004d01c348ae$583084f0$812a40c1@PETEX31> From: "Petri Helenius" To: "Chris Knight" , "'Kai Mosebach'" , References: <007601c3467b$5f20e960$020aa8c0@aims.private> Date: Sat, 12 Jul 2003 22:46:52 +0300 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Subject: Re: LinuxThreads replacement X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Jul 2003 19:47:47 -0000 > 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