Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

coarse grained and fine grained

 
kri shan
Ranch Hand
Posts: 1471
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is coarse grained application and fine grained data ?
 
Sachin Roham
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
May be this example will help

Say u have a banking application....
U have 2 transfer amount from one account 2 another...

U have an
 
Sachin Roham
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Ignore the previous post"

May be this example will help

Say u have a banking application....
U have 2 transfer amount from one account 2 another...

U may have an


Account is fine grained, while Transfer is Coarse grained.
U can use any one...
Infact "Transfer" can use "Account" internally.

 
Robert Stuart
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My understanding of course vs. fine grained is:
Course grained refers to wrapping much or all of the data in a single method call and unwrapping for use at the destination; Fine grained refers to calling individual field accessors each time you require a piece of information.

Hope this helps.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic