LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-09-2007, 05:22 AM   #1
xeon123
Member
 
Registered: Sep 2006
Posts: 374

Rep: Reputation: 16
synchronized in Java


3 - If, from a synchronized method invoke another method that isn't synchronized, the execution of the 2nd inherits the properties of the synchronized from the 1st method?

Eg.

public synchronized void methodA()
{
methodB();
}

public void methodB()
{ ...}

Thanks,
 
Old 09-09-2007, 08:16 AM   #2
xeon123
Member
 
Registered: Sep 2006
Posts: 374

Original Poster
Rep: Reputation: 16
The answer is YES.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
synchronized hash table danfou Linux - General 0 04-05-2007 01:21 AM
synchronized lyrics for current playing mp3 file? rlee923 General 1 04-20-2006 12:07 PM
synchronized file use across internet exodist Linux - Software 0 11-02-2004 02:30 PM
No inbox or synchronized mail in evolution when offline nouwen Linux - Software 0 06-15-2004 09:41 AM
synchronized passwd files? Calamus Linux - Networking 1 01-07-2003 06:38 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration