Latest Tutorials| Questions and Answers|Ask Questions?|Site Map




Have Programming Question? Ask it here!
 
 
 


neelam
Java Synchronization
1 Answer(s)      3 years and 6 months ago
Posted in : Java Interview Questions


What is synchronization and why is it important?

Advertisement
View Answers

October 16, 2010 at 12:14 PM


Synchronization is best use with the Multi-Threading in Java. Synchronization is the way to make our program safe. As we know when we have two or more threads that share a common code there can be some problem like inconsistent of data if one thread is updating data in that code. so if we make that sharable code synchronized then its ensured that at a given time only one thread will be having rights to access that code. other threads can't access the code until its free that is not being used by other thread.


Related Tutorials/Questions & Answers:
java synchronization
java synchronization   What is synchronization and why is it important
Java synchronization
Java synchronization  What is synchronization and why is it important?  Synchronization is best use with the Multi-Threading in Java. Synchronization is the way to make our program safe. As we know when we have two
Advertisements
Java Synchronization
Java Synchronization  What is synchronization and why is it important?  Synchronization is best use with the Multi-Threading in Java. Synchronization is the way to make our program safe. As we know when we have two
Synchronization and Singlethreadmodel - Java Beginners
Synchronization and Singlethreadmodel   Hi Deepak, wat is d difference between singleThreadmodel and synchronization. Thank u in advance
Synchronization with Multithreading - Java Beginners
Synchronization with Multithreading   Hi Deepak, what i know abt synchronization is , we can implement synchronized keyword..., Synchronization : Two or more threads share the same resource (variable or method
Synchronization - Java Interview Questions
Synchronization  Dear Sir my doubt is If we cannot use synchronization for a class then how a vector class is called as synchronized
Synchronization
Synchronization  what is the use of synchronization
Synchronization
Synchronization  i want code for synchronization using in jsp and servlets
synchronization
synchronization  what is about static method synchronization&instance method synchronization
Synchronization - Java Beginners
the following links: http://www.roseindia.net/java/thread/synchronization.shtml http://www.roseindia.net/java/java-methods/java-method-synchronized.shtml http://www.roseindia.net/java/thread/SynchronizedThreads.shtml Thanks
Synchronization in java with example
Synchronization in java with example In this section we will discuss about Synchronization in java. Since java is a multi-threaded language so, when two... synchronization. Synchronized keyword in java create a critical section in which a lock
Thread Synchronization in Java
Thread Synchronization in Java Sometimes, when two or more threads need shared... to be synchronized } Object in Java which have synchronization block... as thread synchronization. The thread synchronization is achieved through
how the streams provide synchronization - Java Beginners
how the streams provide synchronization  How the java streams provides synchronization
Java :Thread Synchronization
Java :Thread Synchronization This section explains how to use concept of synchronization in java Thread. Thread Synchronization : . Java supports multi... of program. So for the multi-threaded application, synchronization of java
Java Thread Synchronization - Development process
Java Thread Synchronization  Hi,Please help me with this coding. I...: "); t2.start(); } } For more information on Java visit to : http://www.roseindia.net/java/ Thanks
Synchronization probleam - Java Server Faces Questions
Synchronization probleam   Hi friends My java multithreading..." to solve the probelm and visit to : http://www.roseindia.net/java/example/java/awt/ Thanks   Hi friend, I saw your sending code but i does
Synchronization probleam - Java Server Faces Questions
Synchronization probleam  Hi friend my question is why it is consuming 99% of cpu time. if i discarded that vechile package it doesnt affect the programme Here is the new code please tell me how to synchronize
Synchronization
Synchronization      ... consistency errors. By the synchronization tool we can avoid this problem. In other... resource. Every object in Java has build-in lock that only comes in action when
Synchronization and interlocking
Synchronization and interlocking  What are the different level locking using the synchronization keyword
Describe synchronization in respect to multithreading.
Describe synchronization in respect to multithreading.  Hi, Describe synchronization in respect to multithreading. thanks,   Are you eager the search related to Java programming query. Let us check
Synchronization on threads
Synchronization on threads  what is the difference between synchronized method and block??   Hello Friend, Differences: 1)Synchronized blocks place locks for shorter periods than synchronized methods. 2)Synchronized
difference between lock and synchronization
difference between lock and synchronization  Hi, I am new in java please anyone tell me difference between lock and synchronization in java. its... and Synchronization
Synchronization in cluster - Development process
Synchronization in cluster  I have a scenario to implement. we have....  Hi, Synchronization is a process of controlling the access... is in the process of using or updating the object's value. Synchronization prevents
tread - Java Beginners
with the Multi-Threading in Java, Synchronization is the capability to control the access...tread  what is a thread and synchronization? give real time example?  A thread is a thread of execution in a program. The Java Virtual
JAVA - Java Beginners
JAVA  Dear Sir, Kindly guide me the definitions in short form (4 to 5 lines) for the following in JAVA, please. 1.Layout Manager 2.Dynamic Method Dispatch 3.Thread Synchronization 4.Abstract Class 5.Over riding methods
corejava - Java Beginners
at the same time . To avoid this problem java has a concept called synchronization...Deadlock Core Java  What is Deadlock in Core Java?  .../java/thread/deadlocks.shtmlThanks
Java concurrency
Java concurrency utilities are classes used as building blocks in building... makes a program short, fast, easier to write, read and maintain. Java... implementations of building blocks. The new Java concurrency utilities have
JAVA - Java Beginners
to 5 lines) for the following in JAVA, please. The answer is required very much urgent since I have to attend for the exam in JAVA. It would be very helpful... Method Dispatch 3.Thread Synchronization 4.Abstract Class 5.Over riding methods
use of synchronozation - Java Interview Questions
is not synchronization and not athread safe,so what are the advantages of synchronization with examples.   Hi friend, Synchronozation.... Synchronization is the keyword to avoid concurrent access to critical section of the code
Multithreading ? - Java Interview Questions
Multithreading ?   Hi Friends, I am new to java... implement Synchronization keyword or singlethreadmodel interface to avoid deadlock...://www.roseindia.net/java/thread/Java-Multithreading.shtml Thanks
Java News in July 2007
Java News in July 2007          Yahoo! to launch its intelligent client Using Java means a better user experience .Yahoo! Go is a Java application which
Interview question - Java Interview Questions
Interview question   Hi Friends, Give me details abt synchronization in interview point of view. I mean ow to explain short and neat. Thanks
java - Java Interview Questions
information, visit the following links: http://www.roseindia.net/help/java/f/final-keyword.shtml http://www.roseindia.net/java/javascript-array/modified-java-method-final-parameter.shtml http://www.roseindia.net/java/beginners
: Java Compilation error. - Java Beginners
: Java Compilation error.  what is the difference between static... on java visit to : http://www.roseindia.net/java/beginners/ http://www.roseindia.net/java/beginners/howtoaccessstaticmethod.shtml Thanks   static
java implementation problem
java implementation problem   I want to implement following in java code : Main thread Create three threads wait for completion of stage 2 of all.... end My problems: There is no need of synchronization. hence i can't use
Features of Java
Features of Java: Java is one of the most popular language in the field... programming is its large number of important and robust features. Java can be used... applications. Java has various important features: SIMPLE Java
java
java  diff bt core java and java
java
java  what is java
JAVA
JAVA  how the name came for java language as "JAVA
java
java   why iterator in java if we for loop
java
java  explain technologies are used in java now days and structure java
java
java  different between java & core java
Java
Java   Whether Java is pure object oriented Language
java
java  is java open source
java
java  what is java reflection
java
java   in java does not pointers concept but what is nullpointers in java?   nullpointer is a runtime Exception
java
what is the size of array in java ?  what is the size of array in java ? what is the mean of finalize in java
programs - Java Beginners
. Write a Java program to demonstrate the concept of synchronization by using.... (by using methods of minimum and maximum of numbers) 3. Write a Java program to demonstrate inheritance. 4. Write a Java program to demonstrate dynamic
programs - Java Beginners
. Write a Java program to demonstrate the concept of synchronization by using.... (by using methods of minimum and maximum of numbers) 3. Write a Java program to demonstrate inheritance. 4. Write a Java program to demonstrate dynamic
Advertisements
 

 

 

DMCA.com