Return-Path: Delivered-To: apmail-new-httpd-archive@apache.org Received: (qmail 77487 invoked by uid 500); 2 Mar 2001 21:15:32 -0000 Mailing-List: contact new-httpd-help@apache.org; run by ezmlm Precedence: bulk Reply-To: new-httpd@apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list new-httpd@apache.org Received: (qmail 77331 invoked from network); 2 Mar 2001 21:15:09 -0000 Message-ID: <20010302211512.27412.qmail@web2302.mail.yahoo.com> Date: Fri, 2 Mar 2001 13:15:12 -0800 (PST) From: Forest Come-Peace Subject: Re: some reasons why Apache 2.0 threaded is slower than prefork To: new-httpd@apache.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Multi-threaded programming is definately a challenge and often times programmers didn't realize that their design has a potentil of running into a risk of creating dead-lock. Don't be too happy when your multi-threaded program actually run. And yes, there are two known methods of achieving inter process synchronization--lock and message passing are the two currently known methods of achieving inter process synchronization that would preserve the program logic. Anybody out there known of any good debugging tool that would let the programmer do timing analysis and also thread safe analysis on the program like the capability of analysing the basic block of a program? Thanks --- John Thompson wrote: > > And we won't bore people with the fact we can do > inter-process message > queue operations (msgrcv, msgsnd) without a lock > given certain restrictions > on the message queue via the S/390 PLO instruction. > > regards, > > John M. Thompson > Consulting Client IT-Architect > Financial Services Sector > IBM Corporation > Internet: johntomp@us.ibm.com > Lotus Notes: John Thompson/Poughkeepsie/IBM > VM: thompson at kgnvmc > > > > Jeff Trawick @bellsouth.net > on 03/01/2001 08:58:03 > PM > > Please respond to new-httpd@apache.org > > Sent by: trawick@bellsouth.net > > > To: new-httpd@apache.org > cc: > Subject: Re: some reasons why Apache 2.0 threaded > is slower than prefork > > > > Greg Stein writes: > > > I once tried to created a lock-less linked-list > for managing some thread > > state stuff in Python. I believe that it finally > came to a point where I > had > > a simple proof that you just can't implement a > read/write linked list in > a > > multi-threaded environemnt without a lock. Beats > me if I can remember the > > key point, though. > > As long as reasonable restrictions are placed on > allowable list > operations (restrictions which are not a problem > when the list is used > to maintain a free pool) you can implement a > lock-free linked list. > Been there, done that. On S/390 we commonly use a > double-word > compare-and-swap operation. Other platforms have > this as well. > Different instructions are available on still more > platforms. > > -- > Jeff Trawick | trawickj@bellsouth.net | PGP public > key at web site: > > http://www.geocities.com/SiliconValley/Park/9289/ > Born in Roswell... married an alien... > > > __________________________________________________ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/