Date: Sun, 01 Aug 2004 14:01:51 -0400 From: Chuck Swiger <cswiger@mac.com> To: Patrick Dung <patrick_dkt@yahoo.com.hk> Cc: freebsd-questions@freebsd.org Subject: Re: Curious question about FreeBSD's TCP/IP and SMP locking Message-ID: <410D300F.5080102@mac.com> In-Reply-To: <20040731194337.37249.qmail@web51802.mail.yahoo.com> References: <20040731194337.37249.qmail@web51802.mail.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Patrick Dung wrote: > I am not programmer but I want to know what is the use > of adding so much locks/mutex in the stack? So that it works properly under SMP. Concurrent programming is really hard to do. > Also, would it make a newbie/beginner feel difficult to > understand the code (I mean the TCP/IP part)? Why, yes, certainly it does. Beyond that, the size of the code involved implies something about the complexity: 8-epia# wc -l /usr/src/sys/netinet/tcp_input.c 3349 /usr/src/sys/netinet/tcp_input.c -- -Chuck
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?410D300F.5080102>