| ||
Try to avoid this problem entirely by creating temporary files in a per- user store, not a public store. Always write reentrant code, even if youre not expecting the app to be multithreaded. Someone may want to port it, and youll also find that the code is more maintainable and robust.