This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes synchronized context Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "synchronized context" Watch "synchronized context" New topic
Author

synchronized context

David Wooddall-Gainey
Greenhorn

Joined: Dec 13, 2007
Posts: 16
Hello and TIA,

K&B book, p 708 "When a thread is executing code from within a synchronized block, including any method invoked from that synchronized block, the code is said to be executing in a synchronized context."

Questions:
1) Is this the definition of a "synchronized context" ;i.e., a synchronized block and all subsequent code invoked from that block?

2)And, on the contrary, a synchronized method is NOT a synchronized context?
Thirugnanam Saravanan
Ranch Hand

Joined: Dec 13, 2007
Posts: 81
Synchronized context refers to either Synchronized methods or Synchronized blocks.


Saravanan
SCJP 5.0(98%), SCWCD 5.0 (100%), OCA
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6661
    
    5

a synchronized block and all subsequent code invoked from that block?


Anything that is running in synchronized mode is said to be in synchronized context


SCJP 6 articles - SCJP 5/6 mock exams - More SCJP Mocks
 
GeeCON Prague 2014
 
subject: synchronized context