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



Home Answers Viewqa Development-process Synchronization in cluster
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


ketan
Synchronization in cluster
1 Answer(s)      6 years and 3 months ago
Posted in : Development process



Advertisement
View Answers

October 15, 2008 at 12:18 PM


Hi,


Synchronization is a process of controlling the access of shared resources by the multiple threads in such a manner that only one thread can access one resource at a time. In non synchronized multithreaded application, it is possible for one thread to modify a shared object while another thread is in the process of using or updating the object's value. Synchronization prevents such type of data corruption.

E.g. Synchronizing a function:
public synchronized void Method1 () {
// Appropriate method-related code.
}

E.g. Synchronizing a block of code inside a function:
public myFunction (){
synchronized (this) {
// Synchronized code here.
}
}


---------------------------------------------------------

Thanks


Related Tutorials/Questions & Answers:
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
Synchronization
Synchronization  what is the use of synchronization
Advertisements
Synchronization
Synchronization  i want code for synchronization using in jsp and servlets
synchronization
synchronization  what is about static method synchronization&instance method synchronization
Synchronization and interlocking
Synchronization and interlocking  What are the different level locking using the synchronization keyword
java synchronization
java synchronization   What is synchronization and why is it important
Synchronization
Synchronization      ... consistency errors. By the synchronization tool we can avoid this problem. In other.... Remember the following points related to lock and synchronization: Only
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
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 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
Linux Rocks Cluster remove node
If you have installed the nodes in a Rocks Cluster and now you want to remove any node, you can easily remove the node by using insert-ethers --remove command. Let's consider you have to remove the following nodes a) compute-0-0 b
Synchronization and Singlethreadmodel - Java Beginners
Synchronization and Singlethreadmodel   Hi Deepak, wat is d difference between singleThreadmodel and synchronization. Thank u in advance
Describe synchronization in respect to multithreading.
Describe synchronization in respect to multithreading.  Hi, Describe synchronization in respect to multithreading. thanks,   Are you... the synchronization in respect to multithreading
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
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 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 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... at a time and the process by which synchronization is achieved is called
Thread Synchronization in Java
Thread Synchronization in Java Sometimes, when two or more threads need shared... as thread synchronization. The thread synchronization is achieved through... to be synchronized } Object in Java which have synchronization block
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
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 probleam - Java Server Faces Questions
Synchronization probleam   Hi friends My java multithreading listner consumes 99% of cpu time.please tell me how to synchronize this programme so that it runs normally like any other programmes. Here is my code
Web 2.0
Web 2.0          Web 2.0, a phrase is a cluster term for the new phase of World Wide Web, which was coined by O?Reilly and Media live International in 2003 and popularized
Web 2.0 Tutorials
Web 2.0 Tutorials       Web 2.0 Web 2.0, a phrase is a cluster term for the new phase of World Wide Web, which was coined by O?Reilly and Media live International in 2003
Web 2.0
Web 2.0       Introduction Web 2.0, a phrase is a cluster term for the new phase of World Wide Web, which was coined by O?Reilly and Media live International in 2003
SubText Plugin
and handling, synchronization, context-sensitive behavior, performance optimizations
collections
collections  what is meant by synchronization
collections
collections  what is meant by synchronization
 

 

 

DMCA.com