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


Groups > comp.programming.threads > #5934

Re: What is it to be smart ?

Newsgroups comp.programming.threads
Date 2020-08-01 10:08 -0700
References <5fd20712-aec4-4a0b-99ca-0322f5feb557o@googlegroups.com> <rg3jmq$371$1@dont-email.me> <1a8fb1e7-e447-48c0-8d17-89e8ec1fdf90o@googlegroups.com> <rg42kr$p8p$1@dont-email.me>
Message-ID <ec7d80f6-945a-45bb-9a9c-e2d769bcad8fo@googlegroups.com> (permalink)
Subject Re: What is it to be smart ?
From aminer68@gmail.com

Show all headers | View raw


On Saturday, August 1, 2020 at 11:44:29 AM UTC-4, Bonita Montero wrote:
> > "Second, it's hard even for experts. It's easy to write lock-free code that appears to work, but it's very difficult to write lock-free code that is correct and performs well. Even good magazines and refereed journals have published a substantial amount of lock-free code that was actually broken in subtle ways and needed correction."
> 
> That's idiocracy. Lock-free programming isn't complex.


I think that you are not understanding correctly, since in my previous 
posts about my inventions of Lock-free algorithms i said that it is difficult and i have explained why, and there is a difference between it is difficult and saying it is complex, read the following from Dr. Dobb's to notice:

"Lock-Free Algorithms and Data Structures. Lock-free algorithms address the issues raised by locks, but bring their own set of problems. Their use in the industry is still fairly new. At their core, they rely on atomic operations at the hardware level. It is very hard to design and implement lock-free algorithms properly because the building blocks are very small; when you compose them, the emerging behavior is not trivial to analyze."

Read more here:

https://www.drdobbs.com/parallel/concurrent-programming-with-chain-lockin/240149442?pgno=1


So notice that he is saying that it is "very hard" and he is explaining why,
and he is in accordance with my writing, read them again carefully:

More analysis of Lock-free algorithms..

I have just looked at the following invention of a Lock-free bounded queue by the following PhDs:

Peter Pirkelbauer that is a PhD in computer science

Here he is:

http://pirkelbauer.com/cv_peter_pirkelbauer.html

and by Reed Milewicz Postdoctoral Appointee, Sandia National Laboratories

Here he is:

https://scholar.google.com/citations?user=PzG-VUAAAAAJ&hl=en

Here is there paper of there Portable Lock-free Bounded Queue invention:

https://rmmilewi.github.io/files/lockfreequeue16.pdf


I think that there Lock-free Bounded Queue invention has a disadvantage , it is that it is too "complex", so it is not good , this is 
why i have just invented my following Lock-free Bounbed Queue and a Lock-free Bounded Stack that are simple to reason about and are much less complex than the above invention:

About software fault tolerance and reliability, read again..

Read the following interesting document about Fault-tolerant computing:

http://web.cs.ucla.edu/~rennels/article98.pdf

I will soon provide you with my following new inventions that are my
new Lock-free algorithms that support software fault tolerance and reliability in a form of Thread-killing Immunity, that means any thread forcefully killed in the system won't delay other threads, and in a form of Signal Immunity and in a form of Pre-emption tolerance and convoy-avoidance and in a form of Priority Inversion Immunity etc.

Read my following thoughts to notice it:

About my new inventions of Lock-free algorithms..

I am a white arab, and i think i am smart since i have invented
many scalable algorithms and there implementations, and today
i will talk more about Lock-free algorithms..

I have previously invented a fully Lock-free bounded LIFO stack algorithm, but i have just invented a fully Lock-free bounded FIFO queue algorithm and a fully Lock-free bounded limited priority queue, but can we ask the question of: Do we have to be really smart to be able to invent those Lock-free algorithms ?

I think that we have to be smart to be able to invent them, because when you are inventing them you have to be able from the many characteristics of the Lock-free algorithm and the restrictive compare-and-swap (CAS) and/or double-length CAS (DCAS) to be able to invent them, so you are too restricted or too constrained and it makes the job of inventing those Lock-free algorithms difficult, this is why you have to be smart, and as you have noticed i have first invented a Lock-free bounded LIFO stack algorithm that is based on an almost(very nearly) Lock-free bounded FIFO queue, and this almost Lock-free bounded FIFO queue of mine has the following advantages(and notice that it only doesn't support Thread-killing Immunity, that means any thread forcefully killed in the system won't delay other threads):

- Signal Immunity: The C and C++Standards prohibit signals or
  asynchronous interrupts from calling many system routines such
  as malloc. If the interrupt calls malloc at the same time with
  an interrupted thread, that could cause deadlock. With my
  algorithms, there's no such problem anymore: Threads can
  freely interleave execution.
- Priority Inversion Immunity: Priority inversion occurs when a
  low-priority thread holds a lock to a mutex needed by a high-
  priority thread. Such tricky conflicts must be resolved by the
  OS kernel.
- Pre-emption tolerant and they are good at convoy-avoidance.
- Starvation-free.
- And for k number of threads in the system (of my almost Lock-
  free FIFO queue or my almost Lock-free FIFO priority queue or
  my almost Lock-free LIFO stack), my almost Lock-free FIFO
  queue or my almost Lock-free FIFO priority queue or my almost
  Lock-free LIFO stack have a system latency of O(q + s*sqrt(k)
  and an individual latency of O(k(q + s*sqrt(k)), but my
  algorithms are of the SCU(0,1) Class of Algorithms, so under
  scheduling conditions which approximate those found in
  commercial hardware architectures, there system latency is
  O(sqrt(k)) and there individual latency is O(k*sqrt(k)),
  read more below to understand more.

You can read about them and download them from my website here:

https://sites.google.com/site/scalable68/lockfree-bounded-lifo-stack-and-fifo-queue


But i will show you soon my inventions of a fully Lock-free bounded LIFO stack algorithm and of a fully Lock-free bounded FIFO queue algorithm and of a fully Lock-free bounded limited priority queue algorithm.


Thank you,
Amine Moulay Ramdane.

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


Thread

What is it to be smart ? aminer68@gmail.com - 2020-07-31 16:25 -0700
  Re: What is it to be smart ? Bonita Montero <Bonita.Montero@gmail.com> - 2020-08-01 13:29 +0200
    Re: What is it to be smart ? aminer68@gmail.com - 2020-08-01 08:19 -0700
      Re: What is it to be smart ? Bonita Montero <Bonita.Montero@gmail.com> - 2020-08-01 17:44 +0200
        Re: What is it to be smart ? aminer68@gmail.com - 2020-08-01 10:08 -0700
        Re: What is it to be smart ? aminer68@gmail.com - 2020-08-01 10:10 -0700
        Re: What is it to be smart ? aminer68@gmail.com - 2020-08-01 10:38 -0700
          Re: What is it to be smart ? Bonita Montero <Bonita.Montero@gmail.com> - 2020-08-01 20:39 +0200
            Re: What is it to be smart ? aminer68@gmail.com - 2020-08-01 11:52 -0700
              Re: What is it to be smart ? Bonita Montero <Bonita.Montero@gmail.com> - 2020-08-01 21:04 +0200
                Re: What is it to be smart ? aminer68@gmail.com - 2020-08-01 12:07 -0700
                Re: What is it to be smart ? Bonita Montero <Bonita.Montero@gmail.com> - 2020-08-01 21:07 +0200
                Re: What is it to be smart ? aminer68@gmail.com - 2020-08-01 12:21 -0700
                Re: What is it to be smart ? Bonita Montero <Bonita.Montero@gmail.com> - 2020-08-01 21:24 +0200
                Re: What is it to be smart ? aminer68@gmail.com - 2020-08-01 12:28 -0700
                Re: What is it to be smart ? Bonita Montero <Bonita.Montero@gmail.com> - 2020-08-02 12:46 +0200
                Re: What is it to be smart ? aminer68@gmail.com - 2020-08-01 12:32 -0700

csiph-web