Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / March 2005

Tip: Looking for answers? Try searching our database.

Keyword synchronized

Thread view: 
Sander Rensen - 28 Feb 2005 09:28 GMT
Hello Java users,

I just started at a IT company and I am learning the Java Language. In Java
they use the keyword 'synchronized'. Where do I use this for? It also seems
that you can use it in a function declaration and in a statement. In which
curcumstances do I use the keyword synchronized in a function declaration
and when do I use it in a statement?

I hope somebody can help me. Thanks for you effort.

Best regards

Sander
Roland - 28 Feb 2005 10:50 GMT
> Hello Java users,
>
[quoted text clipped - 9 lines]
>
> Sander

See the Java tutorial section on locking objects
<http://java.sun.com/docs/books/tutorial/essential/threads/monitors.html>
and the section on threads
<http://java.sun.com/docs/books/tutorial/essential/threads/index.html>
Signature

Regards,

Roland de Ruiter
  ___      ___
 /__/ w_/ /__/
/  \ /_/ /  \

Dotty - 28 Feb 2005 20:35 GMT
> Hello Java users,
>
[quoted text clipped - 9 lines]
>
> Sander

get a book
Thomas G. Marshall - 01 Mar 2005 01:16 GMT
Sander Rensen coughed up:
> Hello Java users,
>
[quoted text clipped - 9 lines]
>
> Sander

You may have realized this from the other two replies, but in case you
haven't, I'll take this moment to spell it out for you.

What you have asked us for is an entire course in multi-threading.  Find as
many tutorials online, and if you need a good java threading book, then
here's one I hear mentioned a lot:

http://www.amazon.com/exec/obidos/tg/detail/-/0201310090/qid=1109639449/sr=8-4/r
ef=pd_csp_4/104-2193462-6374369?v=glance&s=books&n=507846


You can find the cheapest one here:

http://www.bublos.com/cgi-bin/cc.bublobot?isbn=0201310090&timer=10&geog=us

but it is sometimes referred to as not for absolute-rank beginners.  {shrug}

Signature

With knowledge comes sorrow.



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.