mohankreddy / crawler4j

Automatically exported from code.google.com/p/crawler4j
0 stars 0 forks source link

Threads without synchronism #177

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Configure a lot of threads
2. Write to file the page's texts from visit method
3. The result has some error of type (page1 page1 pag1 page2 page2 page1 page1)

What is the expected output? What do you see instead?

I hope:

text page 1
text page 4
text page 3
text page 5
...

and in only few causes I have:

text page 1
text page 3
text pag (text page 5) e 2
...

What version of the product are you using?
3.4

Please provide any additional information below.
I try solve using semaphore inside the visit method without result.

Original issue reported on code.google.com by Esteban....@2r-media.de on 5 Nov 2012 at 1:22

GoogleCodeExporter commented 9 years ago
I tried to use visit method as synchronized, buts without result neither.

Original comment by Esteban....@2r-media.de on 5 Nov 2012 at 2:13