Dear All,

I have developed a C++ server application which handles requests coming in
from my web server. The server application is capable of handling multiple
users at a time. Each user has a session object. Each user also has some
variables associated with it. These variables are maintained in the c++ side
as python dictionaries as they will be processed by executing scripts by the
function PyRun_SimpleString() with each request. What i realised half-way
through the implementation is that I will probably not be able to execute
python scripts in parallel from the c++ end. Is this thinking correct? One
user makes a request and the c++ code calls the python script which has to
fetch information from a remote server (takes some seconds), but I cannot
have other users script execution wait till this first script returns. Am i
missing a point here. Please let me know if there is a way out of this as I
am stuck big time.

Do let me know if you require any more information.

Help will be appreciated. Thanks!!!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20110805/a2a12555/attachment.html>

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppython-list @
postedAug 5, '11 at 9:29a
activeAug 5, '11 at 9:29a

1 user in discussion

Silver Interactive: 1 post



site design / logo © 2023 Grokbase