Pretty picture Jody, I thought that this conversation wasn't crazy enough so I'm throwing my understanding into the mix. ;-)
Problem that I see with Martin's solution: Multiple referencing object cannot be created concurrently because line 20 acquires the lock on the table. Any other thread must have that lock in order to begin creating a referencing object. Jody's solution allows two Referencing objects to be created in parallel because he is locking on entries rather than on the entire table. In database land this is like locking an entire table that you want to update rather than just the row that you will update. Martin: If you can convince me that your code can satisfy that requirement then you've won me :). Rephrasing requirement: CRS1 and CRS2 can be created concurrently. CRS1 will only be created once. ok shutting up and getting out of the way now. Jesse On Jul 4, 2007, at 3:49 PM, Jody Garnett wrote: > Hi Martin - I have drawn a picture! > > The picture is attached to the page, and matches the workflow I > gave you last time: > - http://docs.codehaus.org/display/GEOTDOC/4+Handling+Many+Threads > > I am going to color code the workflow blocks by thread and see if > it helps. > Jody > <mediatorSequenceDiagram1.png> > ---------------------------------------------------------------------- > --- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Geotools-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/geotools-devel ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Geotools-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-devel
