• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh

Groovy Fundamentals

 
Ranch Hand
Posts: 462
Scala jQuery Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Another question...does Groovy handle multi-threading/concurrency in a nicer way than core Java?
 
best scout
Posts: 1294
Scala IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Unfortunately I don't have practical experience with it but the famous GPars library offers a lot of interesting stuff to handle concurrency problems.

In general I'd say it's as easy in Groovy as it is in Java to mess up concurrency problems. In my experience one of the biggest problems in concurrent applications is mutable shared state and there is not much which prevents the use of mutable shared state, neither in Java nor in Groovy. I think functional languages like Scala or Clojure are better suited for real concurrency problems which doesn't mean that it is not possible to write pefect concurrent applications in Groovy.

Marco

 
gunslinger & author
Posts: 151
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I agree that in its core library, Groovy handles concurrency pretty much the same way Java does. The GPars library is extraordinary, however. It has actors, and dataflows, and concurrent collections, and STM, and more. It really deserves more publicity than it's getting.
 
I claim this furniture in the name of The Ottoman Empire! You can keep this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic