Hey Thomas,
thanks for the tip. but there seems to be some probs with the code.
i noticed in your thread2 example that it doesnt really stop the thread. at least not on my machine. I open a test patch with thread2 object and it looks like this with 'ps afmx'
| _ pd -noadc thread.pd | _usr/local/lib/pd/bin/pd-gui | _ pd -noadc thread.pd | _ pd -noadc thread.pd
if I delete the object on the canvas or even close the patch by clicking on the "close" icon from the Window Manager (window maker), it still looks the same as above with 'ps afmx'
Duh! I'll look into that... it's a fact that i'm hardly testing under Linux.....
thanks, Thomas