jQuery in Action, 3rd edition
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

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "synchronized context" Watch "synchronized context" New topic

synchronized context

David Wooddall-Gainey

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."

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.

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

Joined: Feb 24, 2006
Posts: 6662

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
I agree. Here's the link: http://aspose.com/file-tools
subject: synchronized context
It's not a secret anymore!