Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > When a Java program starts up, several system threads are also started ... Is this why all Java classes have extra synchronization overhead ...

Reply
Thread Tools

When a Java program starts up, several system threads are also started ... Is this why all Java classes have extra synchronization overhead ...

 
 
Casey Hawthorne
Guest
Posts: n/a
 
      10-27-2006
When a Java program starts up, several system threads are also started
without the programmer necessarily knowing about them.

Is this why all Java classes have extra synchronization overhead
associated with them even if you are not using threads in your own
program?
--
Regards,
Casey
 
Reply With Quote
 
 
 
 
Robert Klemme
Guest
Posts: n/a
 
      10-27-2006
On 27.10.2006 11:34, Casey Hawthorne wrote:
> When a Java program starts up, several system threads are also started
> without the programmer necessarily knowing about them.


Right.

> Is this why all Java classes have extra synchronization overhead
> associated with them even if you are not using threads in your own
> program?


I do not know what you are referring to here. There are certainly some
operations that need to be performed in a thread safe manner (i.e.
loading of a class by a class loader). But normal instance and class
methods do not suffer extra synchronization overhead unless you
explicitly state so. (That would be quite inefficient btw.)

Kind regards

robert
 
Reply With Quote
 
 
 
Reply

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Does return-by-value mean extra copies and extra overhead? mathieu C++ 3 09-04-2009 04:25 PM
findcontrol("PlaceHolderPrice") why why why why why why why why why why why Mr. SweatyFinger ASP .Net 2 12-02-2006 03:46 PM
Instant Messenger starts when Outlook Express 6 starts no matter what is checked! Route9w Computer Support 11 07-08-2004 01:13 PM



Advertisments