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


Groups > comp.lang.c++ > #85587

Re: Multithreaded Programming : Always use spinlocks for performance?

From Paavo Helde <eesnimi@osa.pri.ee>
Newsgroups comp.lang.c++
Subject Re: Multithreaded Programming : Always use spinlocks for performance?
Date 2022-07-24 19:34 +0300
Organization A noiseless patient Spider
Message-ID <tbjs9v$n6hd$1@dont-email.me> (permalink)
References <ccb52fa0-5627-4002-8697-d577b90dab1bn@googlegroups.com> <tbjnbj$m05c$1@dont-email.me> <tbjp5n$memv$1@dont-email.me> <8d6a4871-4c9c-405a-81ad-374a6899cc94n@googlegroups.com>

Show all headers | View raw


24.07.2022 19:20 Frederick Virchanza Gotham kirjutas:
> On Sunday, July 24, 2022 at 4:40:54 PM UTC+1, Bonita Montero wrote:
>>
>> Spin-Locks are Locks with unlimted spinning <snip>
> 
> 
> I need to clarify something here. I'm not sure if we're using the same terminology. When I say 'spin lock', what I mean is just checking an atomic variable in a loop. 

That would be a user-space spinlock which Bonita is talking about.

> 
> I'm not sure if you mean something else by "spin lock".

I was assuming you are using something like pthread_spin_lock() 
(https://man7.org/linux/man-pages/man3/pthread_spin_lock.3.html).


Back to comp.lang.c++ | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Multithreaded Programming : Always use spinlocks for performance? Frederick Virchanza Gotham <cauldwell.thomas@gmail.com> - 2022-07-24 06:31 -0700
  Re: Multithreaded Programming : Always use spinlocks for performance? Bo Persson <bo@bo-persson.se> - 2022-07-24 15:53 +0200
  Re: Multithreaded Programming : Always use spinlocks for performance? Bonita Montero <Bonita.Montero@gmail.com> - 2022-07-24 16:42 +0200
  Re: Multithreaded Programming : Always use spinlocks for performance? Paavo Helde <eesnimi@osa.pri.ee> - 2022-07-24 18:09 +0300
    Re: Multithreaded Programming : Always use spinlocks for performance? Bonita Montero <Bonita.Montero@gmail.com> - 2022-07-24 17:41 +0200
      Re: Multithreaded Programming : Always use spinlocks for performance? Frederick Virchanza Gotham <cauldwell.thomas@gmail.com> - 2022-07-24 09:20 -0700
        Re: Multithreaded Programming : Always use spinlocks for performance? Paavo Helde <eesnimi@osa.pri.ee> - 2022-07-24 19:34 +0300
        Re: Multithreaded Programming : Always use spinlocks for performance? Bonita Montero <Bonita.Montero@gmail.com> - 2022-07-24 18:57 +0200
        Re: Multithreaded Programming : Always use spinlocks for performance? Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2022-07-24 11:38 -0700
        Re: Multithreaded Programming : Always use spinlocks for performance? "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2022-07-24 13:17 -0700
          Re: Multithreaded Programming : Always use spinlocks for performance? Öö Tiib <ootiib@hot.ee> - 2022-07-25 03:21 -0700
      Re: Multithreaded Programming : Always use spinlocks for performance? Bonita Montero <Bonita.Montero@gmail.com> - 2022-07-24 19:01 +0200
  Re: Multithreaded Programming : Always use spinlocks for performance? "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2022-07-24 13:20 -0700
    Re: Multithreaded Programming : Always use spinlocks for performance? "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2022-07-24 16:55 -0700

csiph-web