Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.programming.threads > #979
| From | Drazen Kacar <dave@fly.srk.fer.hr> |
|---|---|
| Newsgroups | comp.programming.threads |
| Subject | Re: Using sigsetjmp/siglongjmp from multithreaded application |
| Date | 2012-07-24 21:23 +0000 |
| Organization | Čardak ni na nebu, ni na zemlji |
| Message-ID | <slrnk0u4ih.qi3.dave@fly.srk.fer.hr> (permalink) |
| References | <be95cec9-1c3a-492a-a3bb-a58f409b648e@googlegroups.com> <500a55dc$0$6565$9b4e6d93@newsspool4.arcor-online.net> <117c6d30-1866-49a6-994f-6c987609dd90@m8g2000yqo.googlegroups.com> <500f0c85$0$6570$9b4e6d93@newsspool4.arcor-online.net> |
Marcel Müller wrote:
> 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.
There are software algorithms for mutual exclusion which don't rely on
read-modify-write instructions, like Dekker's or Lamport's algorithms.
Dekker's doesn't work with non-sequential memory model, but processors
which reorder memory access usually have read-modify-write instructions,
so it's not an issue.
--
.-. .-. Yes, I am an agent of Satan, but my duties are largely
(_ \ / _) ceremonial.
|
| dave@fly.srk.fer.hr
Back to comp.programming.threads | Previous | Next — Previous in thread | Next in thread | Find similar
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