Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

nx:All of URLy Bird 1.1.3 about multiple thread test

 
liqun chang
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi George:I am a chinese.and can not get Max'book.So only use you multiple thread test code.
I use the code that your provide.but when i test 300 threads,the owner field not same.part of thread throws security exception,another part do not
throw security exception.Why? could you help me?
 
liqun chang
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi George:where did you go? as above mention,i test 300 threads,but the results of Owner fields is not same,also between 1800~1860,if my Random.nextLong() don't create unique value? In which situation can result in this result?please you help me?
 
liqun chang
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi George,as you can see.

From this test,i finally get the result of owner field,but they are not
2000,but from 1800~1860,and the stack trace display the security exception
? why can result in this situation?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic