Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.programming.threads > #1901

Transactional memory and lockfree...

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.albasani.net!.POSTED!not-for-mail
From aminer <aminer@toto.net>
Newsgroups comp.programming.threads, comp.programming
Subject Transactional memory and lockfree...
Date Thu, 10 Oct 2013 18:26:53 -0700
Organization albasani.net
Lines 33
Message-ID <l379jc$e02$1@news.albasani.net> (permalink)
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-Trace news.albasani.net FgnOZ3QTdFHd3DKWgJbP63M2tHZlxfelWOvpSsIi3D9UxxuwqdGfvsZdQm40aD6OrvDFz0qu5LNZ9sTQo+hyKCFjzzSv7ztt05/IBOq2omCNM+Cbi3moOHG4+ncWNvie
NNTP-Posting-Date Thu, 10 Oct 2013 22:26:52 +0000 (UTC)
Injection-Info news.albasani.net; logging-data="SMNKLKcJDFkQfru+0hEH5atbwdQ3etcxzGNm0JVpAsWDYbgyZbY4F807j3WbPT3WKwviK+Q7POJujqbaM5qZrNINuTaFeoNqKpiXbj96buWLOrlR4wkYwEKPcPM6Q1/I"; mail-complaints-to="abuse@albasani.net"
User-Agent Mozilla/5.0 (Windows NT 6.0; WOW64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8
Cancel-Lock sha1:CbYaJzMR67k8sO/v0Bopw7MygXE=
Xref csiph.com comp.programming.threads:1901 comp.programming:3913

Cross-posted to 2 groups.

Show key headers only | View raw


Hello,

I have thought more about lockfree algorithms, they look
like transactional memory but they only work for small applications
such us FIFO queues and stacks and hash tables and Skiplists.. but 
transactional mmemory is suited also for bigger parallel applications, but
i was asking myself a question about the resiliency of the lockfree
algorithms, such us if a thread have crached or stopped inside the CAS 
,that is
also a kind of small critical section, it will not stop the progress
of the other threads, this requirement can, in my opinion, be satisfied 
in lock based algorithms by just using exceptions, cause a thread can 
have only
a some limited problems such as when a memory is full or the disk is 
full .. so we can
use also exceptions to avoid some of those problems and requeue
the work in a FIFO queue for example and leave the critical section,
so Lock based algorithms are also very interresting cause they can
satisfy the requirement of the FIFO fairness and  Locks such
us scalable Anderson Lock or the MCS lock can also minimize the
cache-coherence traffic, this is not the case with the Lockfree traffic, 
so as i said , the Lock based algorithms coupled with
exceptions can satisfy many requirements and can be excellent.



Thank you,
Amine Moulay Ramdane.



Back to comp.programming.threads | Previous | Next | Find similar | Unroll thread


Thread

Transactional memory and lockfree... aminer <aminer@toto.net> - 2013-10-10 18:26 -0700

csiph-web