Meaningless Drivel is fun!
The moose likes Threads and Synchronization and the fly likes Does Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Threads and Synchronization
Bookmark "Does "Practice Parallel Programming" come with Java sample code?" Watch "Does "Practice Parallel Programming" come with Java sample code?" New topic

Does "Practice Parallel Programming" come with Java sample code?

Rogerio Kioshi
Ranch Hand

Joined: Apr 12, 2005
Posts: 689

I'd like to know if "Practice Parallel Programming" comes with Java sample code.

Thank you

Vijitha Kumara

Joined: Mar 24, 2008
Posts: 3899

According to the Author Java & C# are occasionally used (link). I found one Java source file inside the samples available in SourceForge which uses the concurrent package. Rest of them are mostly C++.

[How to ask questions] [Twitter]
Sergey Babkin
Ranch Hand

Joined: Apr 05, 2010
Posts: 50
Yes, the examples are mostly C++. There are small Java snippets used to show some concepts unique to Java. I've tried to keep almost all the examples in the same language, only mentioning in the discussion the differences of the other languages.

Java is a nice language in the sense that it has much support for the parallel programming in the ready APIs. But it's also inconvenient in a book discussing how things work under the cover, exactly because these APIs are the opaque covers :-) So you can read it and get an idea of what happens inside, and see the reasons why some APIs work better in some situations and worse in the others. And how to make your own that works the way you need :-)
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Does "Practice Parallel Programming" come with Java sample code?
It's not a secret anymore!