Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Transactions hurt concurency

 
Prashant Neginahal
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,

I want to understand the meaning of following statement.
"Transactions hurt concurency".

Always all methods of bean are synchronised, so at any point of time only one thread executes business method. So how does transaction further hurts concurrency?

Thanks,
Prashant
 
KasiMurugan Ramasamy
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Prashant,

Could you tell me, where you got this statement.

Thanks & Regards
Kasimurugan R.
 
Miki Muzsi
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It hurts in the sens that threads need to wait! So if you have a lot of big methods all running in (say) different transactions, multipls threads can not (hurt) execute concurrently.

Miki
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!