Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

To henry  RSS feed

 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Henry,

I was reading the excerpt from your book found at www.onjava.com site. You have mentioned that unlike synchorined methods critical sections do not nest. Coud you please explain.

Thanks
Pradeep
 
Henry Wong
author
Sheriff
Posts: 22818
119
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was reading the excerpt from your book found at www.onjava.com site. You have mentioned that unlike synchorined methods critical sections do not nest. Coud you please explain.


The good thing with O'Reilly running an excerpt is that we don't actually have to write an article... ... the bad thing is that it is an excerpt -- things are taken out of context. My other issue is that they choose chapter 6, which will get really difficult later. In fact, the book actually recommends that the later section gets skipped and revisited after playing with the examples a bit.

In this case, the discussion of nesting locks was done a couple of chapters eariler, but since it was out of context, it may be confusing.

Hmmm... as a side note, it has been awhile since I coded Windows threads, but I don't even think the statement is true anymore... thanks for the head up, we may have accidently let an error slip through...

Henry
 
Ko Ko Naing
Ranch Hand
Posts: 3178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Henry Wong:
My other issue is that they choose chapter 6, which will get really difficult later. In fact, the book actually recommends that the later section gets skipped and revisited after playing with the examples a bit.

In this case, the discussion of nesting locks was done a couple of chapters eariler, but since it was out of context, it may be confusing.


Oh, then I can figure out that some chapters of the book needs reading the chapters before them so that they are well understood... This thread is the basic answer for that issue...
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!