[prev in list] [next in list] [prev in thread] [next in thread]
List: apache-modules
Subject: Re: [apache-modules] pthreads
From: Stephan Bauer <stephan.bauer () ask-the-guru ! de>
Date: 2000-02-10 9:46:36
[Download RAW message or body]
Hi John,
We are using pthreads in our module Mod_Redundancy.
Using pthreads works fine on Solaris 2.6 (later
versions not yet tested, but most propably also OK),
and Linux with the latest glibc-2.1.2.
I suspect you are using an older one ?
There are some platform-notes available on our website, if
you need some more details for Linux.
Please see:
http://www.ask-the-guru.de/mod_redundancy/platform_notes.html
if you like.
Ciao,
Stephan
=========================================
Stephan Bauer
Ask-The-Guru Internet Solutions
stephan.bauer@ask-the-guru.de
=========================================
http://www.ask-the-guru.de
The home of Mod_Redundancy...
The Apache-Module for High Availability !
=========================================
-------------------------------------------------------------------------
Greg Stein wrote:
Hey everybody: rather than asking "why" and saying "you should do it
<this> way", we could actually *answer* his question!
John: no, you can't use LinuxThreads with Apache. LinuxThreads uses
SIGUSR1, which Apache also uses. Because of the signal conflict, things
just won't work.
Cheers,
-g
On Tue, 8 Feb 2000, Alejandro Forero Cuervo wrote:
> Is it possible to use pthreads (linux-threads) in a module? I've
> tried but the server hangs.
>
> Out of curiosity, why do you want to use pthreads?
>
> You have to keep in mind that Apache consists of a pool of separate
> processes. If you create pthreads, you'll be able to share memory across
> a given process, but you'll still have many different processes, each
> with its own set of threads.
>
> Have you considered other approaches such as having a separate process
> with all the threads communicating with your Apache module using a socket
> (like HB) or using shared memory instead of pthreads?
>
> Alejo.
> http://bachue.com/alejo
>
> --
> The mere formulation of a problem is far more essential than its solution.
> -- Albert Einstein.
>
>
> --
> ----------------------------------------------------------------
> Apache Modules Mailing List 633 currently subscribed
> ----------------------------------------------------------------
>
> If you wish to be removed from this list, send the word
> 'unsubscribe' to: apache-modules-request@covalent.net
>
--
Greg Stein, http://www.lyra.org/
--
----------------------------------------------------------------
Apache Modules Mailing List 633 currently subscribed
----------------------------------------------------------------
If you wish to be removed from this list, send the word
'unsubscribe' to: apache-modules-request@covalent.net
--
--
----------------------------------------------------------------
Apache Modules Mailing List 629 currently subscribed
----------------------------------------------------------------
If you wish to be removed from this list, send the word
'unsubscribe' to: apache-modules-request@covalent.net
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic