Curious question about FreeBSD's TCP/IP and SMP locking

2004-08-01 Thread Patrick Dung
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

Re: Curious question about FreeBSD's TCP/IP and SMP locking

2004-08-01 Thread Chuck Swiger
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