Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > pl.comp.programming > #34306
| From | heby <heby@poczta.onet.pl> |
|---|---|
| Newsgroups | pl.comp.programming |
| Subject | Re: zapytanie o thready |
| Date | 2021-01-06 16:06 +0100 |
| Organization | A noiseless patient Spider |
| Message-ID | <rt4jma$1j5$1@dont-email.me> (permalink) |
| References | (1 earlier) <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> |
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 | Next — Previous in thread | Next in thread | Find similar
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