From owner-freebsd-questions@FreeBSD.ORG Mon Jul 30 23:52:29 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 A180616A532 for ; Mon, 30 Jul 2007 23:52:29 +0000 (UTC) (envelope-from mwm-keyword-freebsdquestions.8c5a2e@mired.org) Received: from mired.org (vpn.mired.org [66.92.153.74]) by mx1.freebsd.org (Postfix) with SMTP id 508E813C480 for ; Mon, 30 Jul 2007 23:52:29 +0000 (UTC) (envelope-from mwm-keyword-freebsdquestions.8c5a2e@mired.org) Received: (qmail 34697 invoked by uid 1001); 30 Jul 2007 23:23:44 -0000 Received: from bhuda.mired.org (localhost.localdomain [127.0.0.1]) by bhuda.mired.org (tmda-ofmipd) with ESMTP; Mon, 30 Jul 2007 19:23:43 -0400 Date: Mon, 30 Jul 2007 19:23:42 -0400 To: freebsd-hackers@freebsd.org Message-ID: <20070730192342.7e057aad@bhuda.mired.org> In-Reply-To: <46AE6542.1080400@gmail.com> References: <367849.74200.qm@web88315.mail.re4.yahoo.com> <46AE6542.1080400@gmail.com> Organization: Meyer Consulting X-Mailer: Claws Mail 2.9.1 (GTK+ 2.10.12; amd64-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Delivery-Agent: TMDA/1.1.11 (Ladyburn) From: Mike Meyer Cc: Michael S , freebsd-questions@freebsd.org, karol.kwiat@gmail.com 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 23:52:29 -0000 On Tue, 31 Jul 2007 00:25:06 +0200 Karol Kwiatkowski wrote: > 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? > > > > Thanks in advance, > > Michael > > Hi Michael, > > I think @hackers might be better place to ask programming questions > (added to CC). It certainly liable to get a better answer, because it has a higher density of programmers hanging out there. I'm not sure it's a better place to ask programming questions, as it's meant for discussing the development of FreeBSD, as opposed to development on FreeBSD. On the other hand, there doesn't seem to be a list for the latter on the list of freebsd mail lists..... The answer depends on what your goal is. If you want to write portable code, both strive to be Posix systems, so if you follow the Posix guidelines, you'll be ok. Since I develop on several different Unix platforms including FreeBSD for clients running GNU/Linux (among other things), that's what I do, and it generally works. However, if you start straying outside Posix, you'll find differences. My experience is that Linux tends to be missing features, but more lenient about transgressions of the standard, than FreeBSD. On the other hand, my sample set is sufficiently small that this may not be a good indication of what it's like for others. http://www.mired.org/consulting.html Independent Network/Unix/Perforce consultant, email for more information.