den_RDC wrote:
3 - Find a way to do a cwd in a child without changing the parent cwd.

You may want to use a _real_ child instead of a thread here, i.e., fork(). This will give a full process where you can change the cwd without affecting the parent.

Aside 1: I always gest confused by terminology here. I've not seen "parent" and "child" used whan talking about threads. Those are terms associated with forking, and talk about full-blown processes and process groups.

Aside 2: Looking at the mailing list lately, it seem like many issues are simply caused by using threads with shared state, instead of forking and using real processes. As freevo is not a finely-grained parallel application, where the reduction in context switch times is critical to achive good performance, it may be worth revisiting that design decision in the future. I mean, it is implemented using a script language! Yes, processes are heavy weight, but they are also more robust, and the reductionin headaches may be worth the minimal performance difference.

My two cents :-)

Lars
--
Lars Eggert <[EMAIL PROTECTED]>           USC Information Sciences Institute

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature



Reply via email to