From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 30 23:15:39 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2ECAA16A418 for ; Mon, 30 Jul 2007 23:15:39 +0000 (UTC) (envelope-from gahr@gahr.ch) Received: from cpanel03.rubas-s03.net (cpanel03.rubas-s03.net [195.182.222.73]) by mx1.freebsd.org (Postfix) with ESMTP id C0F1213C468 for ; Mon, 30 Jul 2007 23:15:38 +0000 (UTC) (envelope-from gahr@gahr.ch) Received: from 80-218-187-205.dclient.hispeed.ch ([80.218.187.205] helo=gahrtop.localhost) by cpanel03.rubas-s03.net with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1IFeSe-00033R-R1; Tue, 31 Jul 2007 01:15:37 +0200 Message-ID: <46AE7126.3070500@gahr.ch> Date: Tue, 31 Jul 2007 01:15:50 +0200 From: Pietro Cerutti User-Agent: Thunderbird 2.0.0.5 (X11/20070723) MIME-Version: 1.0 To: freebsd-hackers@freebsd.org, msherman77@yahoo.com References: <367849.74200.qm@web88315.mail.re4.yahoo.com> <46AE6542.1080400@gmail.com> In-Reply-To: <46AE6542.1080400@gmail.com> X-Enigmail-Version: 0.95.2 OpenPGP: id=9571F78E; url=http://www.gahr.ch/pgp Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enigEAF3F56298D8AE122A6D14CE" X-Antivirus-Scanner: Clean mail though you should still use an Antivirus X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cpanel03.rubas-s03.net X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - gahr.ch X-Source: X-Source-Args: X-Source-Dir: Cc: Subject: Re: network/multithreaded programming on FreeBSD X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jul 2007 23:15:39 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigEAF3F56298D8AE122A6D14CE Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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.=20 >> 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? Hi Michael, the system calls you'll need for networking socket programming and pthreads are POSIX compliant on both linux and freebsd. Thus, you'll be able to port your programs between the two systems. I suggest to refer to the POSIX pages on threads: http://www.opengroup.org/onlinepubs/009695399/functions/xsh_chap02_09.htm= l and sockets: http://www.opengroup.org/onlinepubs/009695399/functions/xsh_chap02_10.htm= l and to read the wonderful Beej's guite to network programming: http://www.beej.us/guide/bgnet/ >> Thanks in advance, I hope this helps, >> Michael --=20 Pietro Cerutti PGP Public Key: http://gahr.ch/pgp --------------enigEAF3F56298D8AE122A6D14CE Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFGrnEqwMJqmJVx944RCjIeAJ9xXNvNUCNbS58zz0OvDa9NBF+1lQCdFCIe JT4z9dezOpsWpE0YkRquHoU= =NDVu -----END PGP SIGNATURE----- --------------enigEAF3F56298D8AE122A6D14CE--