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


Groups > pl.comp.programming > #34306

Re: zapytanie o thready

Path csiph.com!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From heby <heby@poczta.onet.pl>
Newsgroups pl.comp.programming
Subject Re: zapytanie o thready
Date Wed, 6 Jan 2021 16:06:49 +0100
Organization A noiseless patient Spider
Lines 13
Message-ID <rt4jma$1j5$1@dont-email.me> (permalink)
References <dc44c5f3-c692-4567-ae8b-325b8339290fn@googlegroups.com> <rt4e4d$os9$1@dont-email.me> <84876f67-0de5-4823-ae51-872b74a498adn@googlegroups.com> <rt4f0b$t0t$1@dont-email.me> <28d25254-32ea-483d-87e9-e7e584453c8en@googlegroups.com> <1f0fc527-0a76-444d-9d8b-b54891da2020n@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding 8bit
Injection-Date Wed, 6 Jan 2021 15:06:50 -0000 (UTC)
Injection-Info reader02.eternal-september.org; posting-host="bb2e4c7702ddedf79bc4250536728e69"; logging-data="1637"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/MG/hQUm7R95UT/2xw43ye"
User-Agent Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0
Cancel-Lock sha1:Ec1zaCjbXNnhVFBs8sEMQ7Wl5I4=
In-Reply-To <1f0fc527-0a76-444d-9d8b-b54891da2020n@googlegroups.com>
Content-Language en-US
Xref csiph.com pl.comp.programming:34306

Show key headers only | View raw


On 06/01/2021 15:41, fir wrote:
> ze mozna synchronizowac watki nawet bez atomikow

W ogómym przypadku to nie jest skuteczne. W przypadku architektury x86 
może być czasem możliwe.

W bardzo ogólnym wypadku wymagany jest choć fence, który trzeba jawnie 
uzyć w kodzie programu. Taki mechanizm w CPU który zapewnia 
synchronizację dostępu do pamięci między różnymi rdzeniami i cache.

Tak więc ogólnie rzecz biorąc nie da się zrobić sensownej synchronizacji 
tylko na spilockach bo to zależy na czym to ma pracować. Zwyczajowo w 
świecie wielordzeniowym trzeba się badziej postarać niż while(!flag) { }.

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


Thread

zapytanie o thready fir <profesor.fir@gmail.com> - 2021-01-06 03:54 -0800
  Re: zapytanie o thready heby <heby@poczta.onet.pl> - 2021-01-06 14:31 +0100
    Re: zapytanie o thready fir <profesor.fir@gmail.com> - 2021-01-06 05:40 -0800
      Re: zapytanie o thready heby <heby@poczta.onet.pl> - 2021-01-06 14:46 +0100
        Re: zapytanie o thready fir <profesor.fir@gmail.com> - 2021-01-06 06:29 -0800
          Re: zapytanie o thready fir <profesor.fir@gmail.com> - 2021-01-06 06:41 -0800
            Re: zapytanie o thready heby <heby@poczta.onet.pl> - 2021-01-06 16:06 +0100
              Re: zapytanie o thready fir <profesor.fir@gmail.com> - 2021-01-06 07:29 -0800
                Re: zapytanie o thready fir <profesor.fir@gmail.com> - 2021-01-06 07:38 -0800
                Re: zapytanie o thready "M.M." <mmarszik@gmail.com> - 2021-02-07 03:53 -0800
          Re: zapytanie o thready heby <heby@poczta.onet.pl> - 2021-01-06 16:03 +0100
    Re: zapytanie o thready fir <profesor.fir@gmail.com> - 2021-01-06 05:46 -0800

csiph-web