From: John M. <joh...@ya...> - 2001-09-21 18:18:50
|
Attached is an pair of example programs that compare the single threading in CPython with the true multi-threading by using the Java threads. utah: /home/mudd/misc[1] ls ?ThreadTestSerialize.py cThreadTestSerialize.py jThreadTestSerialize.py utah: /home/mudd/misc[1] cThreadTestSerialize.py self.id=1 self.id=2 self.id=0 Elapsed: 0.1126 sec utah: /home/mudd/misc[1] jThreadTestSerialize.py self.id=2 self.id=0 self.id=1 Elapsed: 0.2870 sec utah: /home/mudd/misc[1] --- R Datta <rd...@cr...> wrote: > Hi all, > > I am working on a program to simulate stress testing (large number of > > users) on JDBC connections. I would like to multithread the JDBC > operations. > > I would appreciate some input (samples, tips etc) with anyone that > has > tried multithreading within jython scripts. > > Thanks > Raj > > Thanks > Raj Datta > Professional Services Direct : > 408-530-4932 > CrossAccess Corp Cell : > 408-316-5473 > 2900 Gordon Ave #100 Fax : 408-735-0328 > Santa Clara CA 95051 Email : > rd...@cr... > > > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users __________________________________________________ Terrorist Attacks on U.S. - How can you help? Donate cash, emergency relief information http://dailynews.yahoo.com/fc/US/Emergency_Information/ |