Re: [PyCS-devel] forking inside a module script
Status: Alpha
Brought to you by:
myelin
|
From: Georg B. <gb...@mu...> - 2003-03-13 11:59:46
|
Hi! > I've decided that the safest way to run htsearch is to fork inside the > module script, run htsearch in the child process, and let the OS clean > up after it. Hmm. fork doesn't exist in all OS - for example I seem to recall some problems with regard to Windows in that area (windows only supporting threading under python, not forking). And we have to take precautions if the forked process needs to talk to metakit databases, as those are only single-user (but it might be that they are only single-write but multiple-read, I didn't check that). That's why in PyDS every tool has it's own lock object, so I can protect database access against background threads concurrent access. bye, Georg |