axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Damitha Kumarage <dami...@wso2.com>
Subject Re: Multi-threaded Services
Date Wed, 19 May 2010 03:54:53 GMT
Abdul Sami wrote:
> Will each Apache process simultaneously handle multiple requests by 
> using threads? or it will process requests one by one?
Apache process simultaneously handle multiple requests by using threads.

Damitha

>
> On 5/12/2010 9:54 AM, Damitha Kumarage wrote:
>> Evan Klinger wrote:
>>> Hello,
>>> When developing a REST service in Axis2/C, how does Apache handle the
>>> integration with the Axis2 module? When a request comes in that is
>>> passed to the Axis2 module, does each request create a new instance of
>>> the service or is it a new thread?
>> It is a new thread
>>>  Basically, in the service we may
>>> need to open a file for writing but also for reading, depending upon
>>> the request. However, we don't want to read while the file is being
>>> written to so it seems like we need a rw lock/mutex, but that will
>>> only work if the service is called by multiple threads. If they are
>>> called from separate processes then I don't think this approach will
>>> work. Any information on how to handle this would be greatly
>>> appreciated.
>> For each Apache process there will be a separate Axis2/C 
>> engine/service. Within that process
>> a single service would handle all requests coming for that service. 
>> So you need to handle mt.
>> Thanks,
>> Damitha
>>> Thank you
>>> Evan
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: c-user-unsubscribe@axis.apache.org
>>> For additional commands, e-mail: c-user-help@axis.apache.org
>>>
>>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: c-user-unsubscribe@axis.apache.org
> For additional commands, e-mail: c-user-help@axis.apache.org
>
>


-- 
__________________________________________________________________

Damitha Kumarage
Technical Lead; WSO2 Inc.
"Oxygenating the Web Service Platform; " http://www.wso2.com/

blog: " http://damithakumarage.wordpress.com/
__________________________________________________________________

---------------------------------------------------------------------
To unsubscribe, e-mail: c-user-unsubscribe@axis.apache.org
For additional commands, e-mail: c-user-help@axis.apache.org


Mime
View raw message