File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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

How efficient it is in case of Multithreading?


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
Ranch Hand

Joined: Jan 28, 2008
Posts: 109
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

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
I agree. Here's the link:
subject: How efficient it is in case of Multithreading?
It's not a secret anymore!