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


Groups > comp.programming.threads > #978

Re: Using sigsetjmp/siglongjmp from multithreaded application

Date 2012-07-24 22:58 +0200
From Marcel Müller <news.5.maazl@spamgourmet.com>
Newsgroups comp.programming.threads
Subject Re: Using sigsetjmp/siglongjmp from multithreaded application
References <be95cec9-1c3a-492a-a3bb-a58f409b648e@googlegroups.com> <500a55dc$0$6565$9b4e6d93@newsspool4.arcor-online.net> <117c6d30-1866-49a6-994f-6c987609dd90@m8g2000yqo.googlegroups.com>
Message-ID <500f0c85$0$6570$9b4e6d93@newsspool4.arcor-online.net> (permalink)
Organization Arcor

Show all headers | View raw


On 24.07.2012 19:34, Michael Podolsky wrote:
>> Secondly you could use lock free data structures.
>
> Yep. I thought of it generally. Yet it looks a little overkill for
> such a task, and, besides, I have no CAS on my platform.

Oh, I wonder if semaphores are possible at all without CAS. AFAIK 
without CAS (or something similar) you are restricted to one CPU core.

>> Last but not least you could simply use a spin-lock. As long as your
>> critical sections are quite small, you will not run into significant
>> trouble.
>
> Somehow it fell completely out of my mind. Thanks for pointing at this
> option.

Hmm, the basic instruction of a spin-lock is CAS, isn't it?


Marcel

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


Thread

Using sigsetjmp/siglongjmp from multithreaded application Michael Podolsky <michael.podolsky.69@gmail.com> - 2012-07-20 14:42 -0700
  Re: Using sigsetjmp/siglongjmp from multithreaded application "Ersek, Laszlo" <lacos@caesar.elte.hu> - 2012-07-21 03:32 +0200
    Re: Using sigsetjmp/siglongjmp from multithreaded application "Ersek, Laszlo" <lacos@caesar.elte.hu> - 2012-07-21 04:05 +0200
      Re: Using sigsetjmp/siglongjmp from multithreaded application Michael Podolsky <michael.podolsky.69@gmail.com> - 2012-07-24 10:22 -0700
        Re: Using sigsetjmp/siglongjmp from multithreaded application "Ersek, Laszlo" <lacos@caesar.elte.hu> - 2012-07-25 03:28 +0200
  Re: Using sigsetjmp/siglongjmp from multithreaded application Marcel Müller <news.5.maazl@spamgourmet.com> - 2012-07-21 09:10 +0200
    Re: Using sigsetjmp/siglongjmp from multithreaded application Michael Podolsky <michael.podolsky.69@gmail.com> - 2012-07-24 10:34 -0700
      Re: Using sigsetjmp/siglongjmp from multithreaded application Marcel Müller <news.5.maazl@spamgourmet.com> - 2012-07-24 22:58 +0200
        Re: Using sigsetjmp/siglongjmp from multithreaded application Drazen Kacar <dave@fly.srk.fer.hr> - 2012-07-24 21:23 +0000
        Re: Using sigsetjmp/siglongjmp from multithreaded application Michael Podolsky <michael.podolsky.69@gmail.com> - 2012-07-24 15:48 -0700

csiph-web