Execuitng script in threads

Posted by Pedro Magalhaes on Stack Overflow See other posts from Stack Overflow or by Pedro Magalhaes
Published on 2010-05-22T03:14:53Z Indexed on 2010/05/22 3:20 UTC
Read the original article Hit count: 315

Filed under:
|

Hi.

I wanna make an app that executes remote scripts. I am going to design it like a Windows Service that listen on tcp/ip port. Every new request I will execute a python scripts. So I can handle any number of tcp/ip request at same time, so I will need to execute python script in separate threads. How can I do that? Is that simple?

The script will share some objects, like Log files(text files) and other modules. In the log file example every script will write in the same file. So the app (windows service) will be responsible for do that. I need to make this objects thread safe, right?

© Stack Overflow or respective owner

Related posts about script

Related posts about multithreading