Also we are looking to develop areas (a place will have multiple areas)
that permits a more fine-grained expression of locality. This will also
support more concurrency within a place.
(With the current implementation, the way to get more concurrency is to
use more places, or the techniques Dave talks about below.)
On 11/16/12 3:37 PM, Dave Cunningham wrote:
Hi
You are correct, in X10 those critical sections would be unnecessarily
serialised. Only one lock is used per place, and each atomic section
will contend on that one lock.
If this causes a problem, you can use explicit locks (just like Java),
or you can use or write a lock-free datastructure. The classes you
need are found in x10.util.concurrent
There is a group experimenting with implementing X10 atomics with
transactional memory, but this work has only just begun.
Good luck :)
On Fri, Nov 16, 2012 at 10:28 AM, LEONID ILYEVSKY
<leonidilyev...@yahoo.com <mailto:leonidilyev...@yahoo.com>> wrote:
Hi,
I am new to X10, and I have a question about the atomic construct,
maybe somebody can clarify it for me.
Let say, in Java I have a class with some synchronized (on the
object level) methods. If I have 100 such objects in memory, then
100 threads can simultaneously work on those objects without
blocking each other.
How you do the same thing in X10 (asuming the program is running
in one place)? From the definition of the atomic block, it seems
that if I translate Java syncronized methods to X10 atomic
methods, then only one object at a time can be processed. Is my
understanding correct?
------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users