• 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
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Head First Java - Threading Strategies

 
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey Kathy, Bert, and Trisha

What level of focus does the current version of Head First Java have in regards to Threading strategies? Does it cover only the base methods to run logic in parallel or does it also have a use-case based approach towards this where we build from the base up to develop something non-trivial.
 
Author
Posts: 49
18
IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Both!

The previous version of the book builds up a music player over the last few chapters of the book, to demo GUI code, networking, and threading. With this version, we brought that code up to date (specifically networking and threading code changed in Java 7 and later), and we added so many examples of how to use the most common concurrency features (many of which were introduced in Java 7 and later) that we had to create a whole new chapter for the book!

Working on the concurrency chapters (chapters 17 and 18) was one of the most challenging and interesting parts of updating this book.
 
Ranch Hand
Posts: 691
Mac
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
wow 18 chapters!!!
 
Marshal
Posts: 80280
432
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Jignesh Patel wrote:wow 18 chapters!!!

How many pages do you get per $?
 
Campbell Ritchie
Marshal
Posts: 80280
432
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

A few minutes ago, I wrote:How many pages . . . per $?

752 pages for $46.99: that comes to 16.
 
Rahul Dayal Sharma
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey Trisha,

This sounds absolutely thrilling to me. I can appreciate concurrency being a tricky one to take on while making it approachable for most folks the way the previous book took on so its definitely one of the more interesting ones I'm keen to see. Aside from this, can we expect any concept of modules in there as well?
 
Jignesh Patel
Ranch Hand
Posts: 691
Mac
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am hoping there must be a nice explanation about how to avoid concurrentmodificationexception?
 
Trisha Gee
Author
Posts: 49
18
IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Modules is mentioned and given a very brief intro, mostly because it's hard to understand the current javadocs without having some idea of the modules in the jdk. We didn't cover creating a modular application, as it's unlikely beginners will have to do that. More senior developers can use a range of resources to get that info (including some of my talks and articles!)

concurrentmodificationexception is covered, we explain what it is and what causes it, and some approaches to avoid it.
 
author
Posts: 9050
21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Campbell Ritchie wrote:

A few minutes ago, I wrote:How many pages . . . per $?

752 pages for $46.99: that comes to 16.



pages / dollar is a metric I never considered before
 
Campbell Ritchie
Marshal
Posts: 80280
432
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Bert Bates wrote:. . . pages / dollar is a metric I never considered before

You didn't expect me to consider anything normal, did you?
 
Hey, check out my mega multi devastator cannon. It's wicked. It makes this tiny ad look weak:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic