I'm gonna schedule a cron with these options in my Ubuntu machine,
* */1 * * * python /path/to/script/my_script.py --pythonpath=/path/to/script/ 1>/path/to/script/success.log 2>/path/to/script/error.log
which will branch out n
number of threads inside. And for logging exceptions(if raised) in each threads I'm using python's print >>stderr
. Question is, if two threads try to write exception on same time will it cause concurrency problem? And if yes, how can I lock and release the stderr
file from thread?