Carl Banks wrote: > > Exactly. Only one thread can hold a lock at a time. If a thread tries > to acquire a lock that some other thread has, it'll wait until the > other thread releases it. You need locks to do this stuff because most > things (such as zipfile objects) don't wait for other threads to > finish. >
I would heartly like to thank you for the suggestion you made. My program now works exactly as I wanted. Thanks. :-) Ritesh -- http://mail.python.org/mailman/listinfo/python-list