Win a copy of Pro Spring MVC with WebFlux: Web Development in Spring Framework 5 and Spring Boot 2 this week in the Spring forum!
  • 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

OCP Java SE 11 Programmer II Study Guide (Sybex 816) Possible Errata Chapter 7 (Concurrency)

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"Introducing Threads" section - first paragraph.

"It follows, then, that a single-threaded process is one that contains exactly one thread, whereas a multithreaded process is one that contains one or more threads.

From this one follows that a process containing exactly one thread is single-threaded and multithreaded. If I'm not wrong the correct one is:

"It follows, then, that a single-threaded process is one that contains exactly one thread, whereas a multithreaded process is one that contains two or more threads.
 
Marshal
Posts: 26614
81
Eclipse IDE Firefox Browser MySQL Database
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You certainly have a good point.

However I imagine a process which starts with zero threads, and then another thread is added to it, and then yet another thread... I could certainly call that a "multithreaded" process even though it started out with no threads at all.

Not that I mean to say you're wrong, though. I'll leave it to the authors to tell us what they meant to say.
 
Borislav Mirchev
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you for the attention and time spent on this!

This discussion is useful to me for understanding the details and it is possible to improve the book's quality.

My English is very poor so it is a source of mistakes. Also the book requires lots of concentration and attention during the reading. For this topic I thought a little like a mathematician: Can a process with a single thread be at the same time single-threaded and
multithreaded?! Usually when some categories are created they are mutually exclusive. Some interpretations are possible. You are correct. The authors can answer what was their idea when wrote the book.

I think writing good books for Java became very hard these days. It is a language with 25+ years of history and covering most of its features with a good depth will probably takes something like 2500 - 3000 pages. But who will read them ...
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic