Hello,
If you make a resource thread-safe, concurrent threads accessing this
resource will wait their turn.
For example, if you have a HashMap in your singleton service and provide
a put (Key, Val) method as such:
public *synchronized *void put(Object Key, Object Val) {
return MyHashMap.put(Key, Val)
}
If several clients are accessing this service simultaneously, Ignite will
spin out a number of threads
to service these clients. All these threads will call the put(..) methods
concurrently.
Because you've *synchronized access to the put*(..) method, only one
thread will execute the method at a time.
Thanks, Alex
--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/