"Sounds like you're workin' for your car!"
"Simplify!" says the hippie who works at the Springfield recycling center. Simplify is right.
Earlier this afternoon, I'd decided I needed to write a program that would spawn children to exec an external program to create a recursive directory tree.
Later that night, after some Len-chili soup and a slice of chocolate cake later, rational minds prevailed, and I realized that I didn't need to write a forking application to exec an external program if I could, much more easily, factor the work done by the external program into my program. Sure, spawning recursive child processes is one way to do it, but it's not the safest way to do it.
No concurrency means no locks. No locks means no chance of locking bugs. And that's always a good thing.
No comments:
Post a Comment