Return-Path: Delivered-To: new-httpd-archive@hyperreal.org Received: (qmail 7375 invoked by uid 6000); 20 Nov 1997 17:24:08 -0000 Received: (qmail 7368 invoked from network); 20 Nov 1997 17:24:07 -0000 Received: from twinlark.arctic.org (305@204.62.130.91) by taz.hyperreal.org with SMTP; 20 Nov 1997 17:24:07 -0000 Received: (qmail 7979 invoked by uid 500); 20 Nov 1997 17:26:17 -0000 Date: Thu, 20 Nov 1997 09:26:16 -0800 (PST) From: Dean Gaudet To: new-httpd@apache.org Subject: Re: Want to add file caching to Apache In-Reply-To: <34747033.647C873D@prairie.nodak.edu> Message-ID: Legal: "Copyright (c) 1997 Dean Gaudet, all rights reserved. Visit http://www.arctic.org/~dgaudet/legal for more information." Organization: Transmeta Corp. MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: new-httpd-owner@apache.org Precedence: bulk Reply-To: new-httpd@apache.org You shouldn't have to go down to assembly, that's what POSIX threads is supposed to provide .... linuxthreads does provide cheap semaphores, but only within a single cloned process (i.e. one multithreaded process, unlike solaris which provides them between multiple multithreaded processes). I believe glibc-based linuxthreads is supposed to deal with this problem; but I'm not bothering to upgrade until redhat 5.0 in december. Dean On Thu, 20 Nov 1997, Igor Tatarinov wrote: > Charles Randall wrote: > > > > Would it be prudent to create an abstract Apache-API to shared memory > > and semaphores before starting this work? > > > > Charles Randall > > crandall@matchlogic.com > > Yes, I was going to do that at some point. Unfortunately, this assumes going > down to the assembly language (the compare&swap instruction is not visible > otherwise). I've found that Linux has a macro xchg() that should help on any > 486/gcc based system. Not sure about other platforms/compilers; they may not > like assembler stuff at all. > > igor > > -- > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Igor Tatarinov, graduate student, Computer Science Dept, NDSU > e-mail: tatarino@prairie.nodak.edu or itat@acm.org > http://www.cs.ndsu.nodak.edu/~tatarino > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >