Curious question about FreeBSD's TCP/IP and SMP locking
Hi After browsing the *BSD cvsweb site, I have found that FreeBSD-current's TCPIP code has added locking/mutex in it. I am not programmer but I want to know what is the use of adding so much locks/mutex in the stack? Also, would it make a newbie/beginner feel difficult to understand the code (I mean the TCP/IP part)? Thanks _ ... http://us.rd.yahoo.com/evt=22281/*http://ringtone.yahoo.com.hk/ ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Curious question about FreeBSD's TCP/IP and SMP locking
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 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]