[Biopython-dev] Background process handling

Antoine van Gelder antoine at egenetics.com
Fri Sep 29 04:34:48 EDT 2000


thomas at cbs.dtu.dk wrote:
> How should I solve this ?
> a) fork and exec*
> b) popen
> c) write to temporary file, start blast into new file, continuously read
>    new file
> d) use an expect module
> e) threads
> f) a combination with a LOT of updates ?
> g) ???

In the Stackpack EST clustering pipeline I use a thread wrapped around
popen to fire off jobs that are expected to take some time.

Main program updates can be handled either through polling the thread
(not so good) or a callback from the thread (much better) 

:>

 - antoine



More information about the Biopython-dev mailing list