From owner-freebsd-questions@FreeBSD.ORG Mon Jul 30 22:21:00 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6D0DD16A417 for ; Mon, 30 Jul 2007 22:21:00 +0000 (UTC) (envelope-from pieter@degoeje.nl) Received: from smtp.utwente.nl (unknown [IPv6:2001:610:1908:1000:204:23ff:feb5:7e66]) by mx1.freebsd.org (Postfix) with ESMTP id EAD1E13C46E for ; Mon, 30 Jul 2007 22:20:59 +0000 (UTC) (envelope-from pieter@degoeje.nl) Received: from lux.student.utwente.nl (lux.student.utwente.nl [130.89.170.81]) by smtp.utwente.nl (8.12.10/SuSE Linux 0.7) with ESMTP id l6UMKrj1017640; Tue, 31 Jul 2007 00:20:53 +0200 From: Pieter de Goeje To: freebsd-questions@freebsd.org Date: Tue, 31 Jul 2007 00:20:52 +0200 User-Agent: KMail/1.9.7 References: <367849.74200.qm@web88315.mail.re4.yahoo.com> In-Reply-To: <367849.74200.qm@web88315.mail.re4.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200707310020.52911.pieter@degoeje.nl> X-UTwente-MailScanner-Information: Scanned by MailScanner. Contact helpdesk@ITBE.utwente.nl for more information. X-UTwente-MailScanner: Found to be clean X-UTwente-MailScanner-From: pieter@degoeje.nl X-Spam-Status: No Cc: Michael S Subject: Re: network/multithreaded programming on FreeBSD X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jul 2007 22:21:00 -0000 On Monday 30 July 2007, Michael S wrote: > Good day all, > > I am not sure this is the correct list for my > question, I am still going to ask though. > I am a 3rd year computer science student and in the > fall I am going to be taking courses in network and > system programming (with pthread). As a lot of > universities do, mine also teaches these courses on > Linux. I was wondering if there was a lot of > difference in socket and multi-threaded programming > between Linux and FreeBSD? Hello, Pthreads is a standardized interface available on both Linux and FreeBSD, so there should not be any differences between them. Likewise for sockets. The only really minor difference I can think of right now is the sa_len member of struct sockaddr which is available on FreeBSD but not on Linux. The cool thing about FreeBSD is that everything you need to program is already installed :) Cheers, Pieter de Goeje > > Thanks in advance, > Michael