# ./showflaw.pl main: creating new empty database main: forking threads and waiting for them thread_a: pid 6308 thread_a: attempting to open db and get lock thread_a: waiting five seconds thread_b: pid 6309 thread_b: waiting three seconds thread_b: attempting to open db and get lock thread_a: writing 2000 records to the database thread_a: dumping database to foo.db.dump01 thread_a: releasing lock thread_b: dumping database to foo.db.dump02 thread_a: exiting thread_b: writing 400 records to the database thread_b: dumping database to foo.db.dump03 thread_b: releasing lock thread_b: exiting main: opening and dumping database to foo.db.dump04 main: exiting # wc -l foo.db.* 2001 foo.db.dump01 1000 foo.db.dump02 1400 foo.db.dump03 1400 foo.db.dump04 5801 total # rm foo.db # uname -a Linux hobbes.drh.net 2.2.9-27mdk #1 Mon Jun 14 16:44:05 CEST 1999 i586 unknown (note: the system is actually Red Hat 6.0 with a Mandrake kernel tossed in)