473,322 Members | 1,523 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

ONE process at a time

Hi there,

I am having a web application which has OpenOffice running as backend. The
whole web application runs great if there is only one request at a time. The
web application will mess up if there are more than one requests at same
time. My question is what should I do to only allow one process at same
time for my web application. In another words, The second request will wait
until the first one has finished if there are more than one request at same
time.

Thanks in advanced

Alan
Mar 24 '06 #1
3 1142
Aside from it being a pretty terrible idea you should look at the waithandle
classes in the System.Threading namespace, particuarly at the ManualReset
event. I only mention because you could do it but obviously it won't scale.
"Alan Wang" <wa**@vdata.com> wrote in message
news:ud**************@tk2msftngp13.phx.gbl...
Hi there,

I am having a web application which has OpenOffice running as backend. The
whole web application runs great if there is only one request at a time.
The web application will mess up if there are more than one requests at
same time. My question is what should I do to only allow one process at
same time for my web application. In another words, The second request
will wait until the first one has finished if there are more than one
request at same time.

Thanks in advanced

Alan

Mar 24 '06 #2
Like Duncan said you can uses the waithandle namespaces, which are like
mutex's.
It won't scale, and it's poor design. Better find out what resource(s) are
not able to handle multiple requests.

Cheers,
Mark

"Duncan Mole" wrote:
Aside from it being a pretty terrible idea you should look at the waithandle
classes in the System.Threading namespace, particuarly at the ManualReset
event. I only mention because you could do it but obviously it won't scale.
"Alan Wang" <wa**@vdata.com> wrote in message
news:ud**************@tk2msftngp13.phx.gbl...
Hi there,

I am having a web application which has OpenOffice running as backend. The
whole web application runs great if there is only one request at a time.
The web application will mess up if there are more than one requests at
same time. My question is what should I do to only allow one process at
same time for my web application. In another words, The second request
will wait until the first one has finished if there are more than one
request at same time.

Thanks in advanced

Alan


Mar 24 '06 #3
How about using synchronized method?

Alan
"Mark" <Ma**@discussions.microsoft.com> wrote in message
news:FD**********************************@microsof t.com...
Like Duncan said you can uses the waithandle namespaces, which are like
mutex's.
It won't scale, and it's poor design. Better find out what resource(s) are
not able to handle multiple requests.

Cheers,
Mark

"Duncan Mole" wrote:
Aside from it being a pretty terrible idea you should look at the
waithandle
classes in the System.Threading namespace, particuarly at the ManualReset
event. I only mention because you could do it but obviously it won't
scale.
"Alan Wang" <wa**@vdata.com> wrote in message
news:ud**************@tk2msftngp13.phx.gbl...
> Hi there,
>
> I am having a web application which has OpenOffice running as backend.
> The
> whole web application runs great if there is only one request at a
> time.
> The web application will mess up if there are more than one requests at
> same time. My question is what should I do to only allow one process
> at
> same time for my web application. In another words, The second request
> will wait until the first one has finished if there are more than one
> request at same time.
>
> Thanks in advanced
>
> Alan
>


Mar 24 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

77
by: Charles Law | last post by:
Hi guys I have a time critical process, running on a worker thread. By "time critical", I mean that certain parts of the process must be completed in a specific time frame. The time when the...
4
by: Prince Kumar | last post by:
I joined a company recently and they have a java program which hangs (does nothing) after a while. This is no way consistent. It could succeed quite a few times and can fail a few other times....
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.