wood burning stoves 2.0*
The moose likes Other Languages and the fly likes How efficient it is in case of Multithreading? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Languages » Other Languages
Bookmark "How efficient it is in case of Multithreading?" Watch "How efficient it is in case of Multithreading?" New topic
Author

How efficient it is in case of Multithreading?

joseph
Greenhorn

Joined: Apr 04, 2008
Posts: 3
In case of MultiThreading and in case of multiple clients in a distributed architecture how efficient it is?
Venkat Subramaniam
Author
Ranch Hand

Joined: Jan 28, 2008
Posts: 79
Groovy preserves the Java semantics, so it is going to behave just like Java. The only difference or improvement is enhanced API or methods to the Thread class and on Object that make it easier to create thread, etc.
Jim Yingst
Wanderer
Sheriff

Joined: Jan 30, 2000
Posts: 18671
Well, isn't it also possible that there will be differences in performance? Groovy's more dynamic method dispatching can mean slower performance in some cases. I suspect this is more of an issue in CPU-bound applications, which are fairly rare in this day and age, but they do still exist sometimes. I imagine the usual performance advice still applies - don't worry about it unless and until it's demonstrably a problem, then optimize the part that is actually a bottleneck. In Groovy development, part of that optimization might include rewriting some critical sections in pure Java.

I should also note that none of what I've said is specifically about multithreading - rather it pertains to performance in general. Multithreading in Groovy doesn't seem to introduce any new problems, anyway.


"I'm not back." - Bill Harding, Twister
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How efficient it is in case of Multithreading?
 
Similar Threads
Multithreading in EJB? Yes! how?
Which part of Java is sexy for you?
Multithreading JSP
Servlets MultiThreading
multiThreading test