Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Eiffel > Re: eiffel pars...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 34 of 34 Topic 872 of 930
Post > Topic >>

Re: eiffel parser in SmartEiffel

by lee <cogneme@[EMAIL PROTECTED] > Jul 25, 2007 at 06:10 AM

> Also you should consider to dive into the world of lock-free
> programming where the huge benefit is not performance (as many people
> think) but deadlock free programming. This seems to became serious
> now, fundamentals were added to Java 1.6 and just these days Intel put
> their TBB (thread building block) library under GPL(+Runtime
> Exception). So we finally have some code to look at. Lock-free
> programming is unfortunately not widely implemented and full of
> patents, so you can't find a lot of open source code. You need to read
> state-of-the-art papers and write this your own. But once you
> understand how it works it is not impossible.
>
Thanks for the pointer to the Intel tools.  I skimmed some of the
do***entation
today but did not see a reference to lock-free programming.  I did see
the
Intel site mention mutexes, etc.  And I have never heard of lock-free
programming.
So, I looked it up on Wikipedia.  Not always the most successful
approach, but
usually the quickest and most direct. :-)  Anyway, they noted the
following:

   "Lock-free" refers to the fact that a thread cannot lock up: every
step it takes brings progress to the system. This means that no
synchronization primitives such as mutexes or semaphores can be
involved, as a lock-holding thread can prevent global progress if it
is switched out. "Wait-free" refers to the fact that a thread can
complete any operation in a finite number of steps, regardless of the
actions of other threads. All wait-free algorithms are lock-free, but
the reverse is not necessarily true. (from Wikipedia)

And when I read through some examples, it looks like lock-free
algorithms are
using one of my favorite design patterns: transactions.  That is, with
a
transaction you try to have each unit of the transaction execute
atomically.
With atomic execution, either the whole action succeeds or the whole
action
fails.  The same article noted that often the hardware provides a
"compare
and swap" feature that enables a thread to determine if a value is
either updated (atomically) or whether the value has failed to update
because some other thread has already updated the value.

Is this your understanding of lock-free or did I miss something? Let
me know
and then I can give you my 2 cents on how some of these ideas might
be achieved with SmartEiffel 2.3.

Lee
 




 34 Posts in Topic:
eiffel parser in SmartEiffel
lee <cogneme@[EMAIL PR  2007-07-18 22:53:24 
Re: eiffel parser in SmartEiffel
llothar <llothar@[EMAI  2007-07-19 21:34:27 
Re: eiffel parser in SmartEiffel
lee <cogneme@[EMAIL PR  2007-07-20 08:54:24 
Re: eiffel parser in SmartEiffel
llothar <llothar@[EMAI  2007-07-25 02:50:17 
Re: eiffel parser in SmartEiffel
lee <cogneme@[EMAIL PR  2007-07-25 13:26:38 
Re: eiffel parser in SmartEiffel
llothar <llothar@[EMAI  2007-07-20 13:56:18 
Re: eiffel parser in SmartEiffel
lee <cogneme@[EMAIL PR  2007-07-20 20:29:23 
Re: eiffel parser in SmartEiffel
llothar <llothar@[EMAI  2007-07-26 08:06:19 
Re: eiffel parser in SmartEiffel
lee <cogneme@[EMAIL PR  2007-07-26 09:07:00 
Re: eiffel parser in SmartEiffel
llothar <llothar@[EMAI  2007-07-20 22:32:43 
Re: eiffel parser in SmartEiffel
Pascal Obry <pascal@[E  2007-07-21 11:21:00 
Re: eiffel parser in SmartEiffel
llothar <llothar@[EMAI  2007-07-21 05:31:16 
Re: eiffel parser in SmartEiffel
Pascal Obry <pascal@[E  2007-07-21 14:39:36 
Re: eiffel parser in SmartEiffel
Friedrich Dominicus <j  2007-07-21 17:01:28 
Re: eiffel parser in SmartEiffel
lee <cogneme@[EMAIL PR  2007-07-21 13:37:23 
Re: eiffel parser in SmartEiffel
Friedrich Dominicus <j  2007-07-23 07:30:40 
Re: eiffel parser in SmartEiffel
llothar <llothar@[EMAI  2007-07-21 15:12:15 
Re: eiffel parser in SmartEiffel
llothar <llothar@[EMAI  2007-07-21 15:20:10 
Re: eiffel parser in SmartEiffel
lee <cogneme@[EMAIL PR  2007-07-22 04:57:02 
Re: eiffel parser in SmartEiffel
llothar <llothar@[EMAI  2007-07-22 02:46:14 
Re: eiffel parser in SmartEiffel
lee <cogneme@[EMAIL PR  2007-07-22 18:27:28 
Re: eiffel parser in SmartEiffel
Eric Bezault <ericb@[E  2007-07-22 21:28:56 
Re: eiffel parser in SmartEiffel
Colin Paul Adams <coli  2007-07-22 20:24:46 
Re: eiffel parser in SmartEiffel
llothar <llothar@[EMAI  2007-07-22 13:51:28 
Re: eiffel parser in SmartEiffel
Eric Bezault <ericb@[E  2007-07-22 22:59:48 
Re: eiffel parser in SmartEiffel
lee <cogneme@[EMAIL PR  2007-07-23 06:15:42 
Re: eiffel parser in SmartEiffel
lee <cogneme@[EMAIL PR  2007-07-23 06:19:28 
Re: eiffel parser in SmartEiffel
llothar <llothar@[EMAI  2007-07-23 00:05:52 
Re: eiffel parser in SmartEiffel
lee <cogneme@[EMAIL PR  2007-07-23 17:44:19 
Re: eiffel parser in SmartEiffel
llothar <llothar@[EMAI  2007-07-24 01:40:41 
Re: eiffel parser in SmartEiffel
lee <cogneme@[EMAIL PR  2007-07-24 19:53:46 
Re: eiffel parser in SmartEiffel
llothar <llothar@[EMAI  2007-07-24 17:17:37 
Re: eiffel parser in SmartEiffel
llothar <llothar@[EMAI  2007-07-24 18:58:30 
Re: eiffel parser in SmartEiffel
lee <cogneme@[EMAIL PR  2007-07-25 06:10:27 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 16:51:22 CDT 2008.