[python-win32] Multithreaded Service
mhammond at skippinet.com.au
Wed Aug 16 17:01:18 CEST 2006
If your application works as expected before converting to a service, there
should be no problem getting it working as a service. At the most basic
level, your service's main thread can do nothing more than interact with the
service control manager, and your application code should be able to run in
its own thread, quite independent of the service interactions. The only
minor complication will be to have the main service thread communicate
service shutdown to your app code.
Can you be more specific about what problems you are having?
From: python-win32-bounces at python.org
[mailto:python-win32-bounces at python.org]On Behalf Of Christopher A. Nethery
Sent: Wednesday, 16 August 2006 9:11 AM
To: python-win32 at python.org
Subject: [python-win32] Multithreaded Service
I am new to this group, but I'm hoping someone could offer some advice as
to a complicated issue I am having.
I have created a (multithreaded) Python application that performs
asynchronous queries. Unfortunately, I'm having a very difficult time
setting it up as a service.
It should run as follows:
1) A remote server starts the service
2) while the service is running, it performs its asynchronous
I have taken a look at the pipeTestServiceClient.py and pipeTestService.py
examples from win32all build 209, but I couldn't figure out how to adapt it
to my own code, since nothing needs to be echoed back to the "invoking"
server. Does anyone have any ideas?
Thanking you in advance,
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-win32