From: MenTaLguY Date: 2008-03-10T17:28:00+09:00 Subject: Re: multithreading sysread error --=-tlRNm7H1ViNb0PPLLjqN Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Mon, 2008-03-10 at 15:21 +0900, Venkat Bagam wrote: > Mental Guy wrote: > > There are a number of problems, among them: > >=20 > > 1. deriving from Monitor does not do anything for you in > > this case, since you don't use any of its locking > > facilities (deriving from Monitor like this probably > > isn't a good approach anyway) >=20 > > -mental >=20 > I used a synchronized block in "download_file(html_link)"=20 > method...Doesn't that make any sense of locking ??? Am I wrong again !!! In the code you gave, shared resources like @@html_links and @agent aren't protected at all. -mental --=-tlRNm7H1ViNb0PPLLjqN Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQBH1PEUEpMFVe94r24RAj9DAJ9E/Lduj1HtYZZ+MmPbQRHsUlWJJwCeJ694 LMfUz1H/GfSEGIiZc1UZNq8= =sxky -----END PGP SIGNATURE----- --=-tlRNm7H1ViNb0PPLLjqN--