Debian Codegraph @

po/ru/man3/pthread_spin_init.3.po

raw
1 # Russian translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Alexey, 2016.
5 # Azamat Hackimov <[email protected]>, 2014-2017.
6 # kogamatranslator49 <[email protected]>, 2015.
7 # Darima Kogan <[email protected]>, 2014.
8 # Max Is <[email protected]>, 2016.
9 # Yuri Kozlov <[email protected]>, 2011-2019.
10 # Иван Павлов <[email protected]>, 2017.
11 msgid ""
12 msgstr ""
13 "Project-Id-Version: manpages-l10n\n"
14 "POT-Creation-Date: 2026-06-05 06:38+0200\n"
15 "PO-Revision-Date: 2024-12-21 19:50+0300\n"
16 "Last-Translator: Yuri Kozlov <[email protected]>\n"
17 "Language-Team: Russian <[email protected]>\n"
18 "Language: ru\n"
19 "MIME-Version: 1.0\n"
20 "Content-Type: text/plain; charset=UTF-8\n"
21 "Content-Transfer-Encoding: 8bit\n"
22 "Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
23 "n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || "
24 "(n%100>=11 && n%100<=14)? 2 : 3);\n"
25 "X-Generator: Lokalize 2.0\n"
26
27 #. type: TH
28 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
29 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
30 #, no-wrap
31 msgid "pthread_spin_init"
32 msgstr ""
33
34 #. type: TH
35 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
36 #: opensuse-tumbleweed
37 #, no-wrap
38 msgid "2026-02-08"
39 msgstr "8 февраля 2026 г."
40
41 #. type: TH
42 #: archlinux debian-unstable
43 #, fuzzy, no-wrap
44 #| msgid "Linux man-pages 6.17"
45 msgid "Linux man-pages 6.18"
46 msgstr "Справочные страницы Linux 6.17"
47
48 #. type: SH
49 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
50 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
51 #, no-wrap
52 msgid "NAME"
53 msgstr "НАИМЕНОВАНИЕ"
54
55 #. type: Plain text
56 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
57 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
58 msgid ""
59 "pthread_spin_init, pthread_spin_destroy - initialize or destroy a spin lock"
60 msgstr ""
61 "pthread_spin_init, pthread_spin_destroy - инициализирует или уничтожает "
62 "циклическую блокировку"
63
64 #. type: SH
65 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
66 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
67 #, no-wrap
68 msgid "LIBRARY"
69 msgstr "БИБЛИОТЕКА"
70
71 #. type: Plain text
72 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
73 #: opensuse-leap-16-1 opensuse-tumbleweed
74 msgid "POSIX threads library (I<libpthread>,\\ I<-lpthread>)"
75 msgstr "Библиотека потоков POSIX (I<libpthread>,\\ I<-lpthread>)"
76
77 #. type: SH
78 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
79 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
80 #, no-wrap
81 msgid "SYNOPSIS"
82 msgstr "СИНТАКСИС"
83
84 #. type: Plain text
85 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
86 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
87 #, no-wrap
88 msgid "B<#include E<lt>pthread.hE<gt>>\n"
89 msgstr "B<#include E<lt>pthread.hE<gt>>\n"
90
91 #. type: Plain text
92 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
93 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
94 #, no-wrap
95 msgid ""
96 "B<int pthread_spin_init(pthread_spinlock_t *>I<lock>B<, int >I<pshared>B<);>\n"
97 "B<int pthread_spin_destroy(pthread_spinlock_t *>I<lock>B<);>\n"
98 msgstr ""
99 "B<int pthread_spin_init(pthread_spinlock_t *>I<lock>B<, int >I<pshared>B<);>\n"
100 "B<int pthread_spin_destroy(pthread_spinlock_t *>I<lock>B<);>\n"
101
102 #. type: Plain text
103 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
104 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
105 msgid ""
106 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
107 msgstr ""
108 "Требования макроса тестирования свойств для glibc (см. "
109 "B<feature_test_macros>(7)):"
110
111 #. type: Plain text
112 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
113 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
114 msgid "B<pthread_spin_init>(), B<pthread_spin_destroy>():"
115 msgstr "B<pthread_spin_init>(), B<pthread_spin_destroy>():"
116
117 #. type: Plain text
118 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
119 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
120 #, no-wrap
121 msgid " _POSIX_C_SOURCE E<gt>= 200112L\n"
122 msgstr " _POSIX_C_SOURCE E<gt>= 200112L\n"
123
124 #. type: SH
125 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
126 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
127 #, no-wrap
128 msgid "DESCRIPTION"
129 msgstr "ОПИСАНИЕ"
130
131 #. type: Plain text
132 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
133 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
134 msgid ""
135 "I<General note>: Most programs should use mutexes instead of spin locks. "
136 "Spin locks are primarily useful in conjunction with real-time scheduling "
137 "policies. See NOTES."
138 msgstr ""
139 "I<Общее замечание>: Большинству программ достаточно использования мьютексов, "
140 "а не циклических блокировок. В основном, циклические блокировки полезны при "
141 "применении алгоритмов планирования реального времени. Смотрите ЗАМЕЧАНИЯ."
142
143 #. type: Plain text
144 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
145 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
146 msgid ""
147 "The B<pthread_spin_init>() function allocates any resources required for "
148 "the use of the spin lock referred to by I<lock> and initializes the lock to "
149 "be in the unlocked state. The I<pshared> argument must have one of the "
150 "following values:"
151 msgstr ""
152 "Функция B<pthread_spin_init>() выделяет ресурсы, требуемые для работы "
153 "циклической блокировки, на которую указывает I<lock>, и инициализирует "
154 "блокировку в неблокированном состоянии. В аргументе I<pshared> должно быть "
155 "одно из следующих значений:"
156
157 #. type: TP
158 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
159 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
160 #, no-wrap
161 msgid "B<PTHREAD_PROCESS_PRIVATE>"
162 msgstr "B<PTHREAD_PROCESS_PRIVATE>"
163
164 #. type: Plain text
165 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
166 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
167 msgid ""
168 "The spin lock is to be operated on only by threads in the same process as "
169 "the thread that calls B<pthread_spin_init>(). (Attempting to share the spin "
170 "lock between processes results in undefined behavior.)"
171 msgstr ""
172 "Циклическая блокировка будет использоваться только нитями одного процесса, "
173 "которому принадлежит вызвавшая B<pthread_spin_init>() нить (попытка "
174 "использования такой циклической блокировки между процессами приводит к "
175 "непредсказуемому поведению)."
176
177 #. type: TP
178 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
179 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
180 #, no-wrap
181 msgid "B<PTHREAD_PROCESS_SHARED>"
182 msgstr "B<PTHREAD_PROCESS_SHARED>"
183
184 #. type: Plain text
185 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
186 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
187 msgid ""
188 "The spin lock may be operated on by any thread in any process that has "
189 "access to the memory containing the lock (i.e., the lock may be in a shared "
190 "memory object that is shared among multiple processes)."
191 msgstr ""
192 "Циклическая блокировка может использоваться любой нитью любого процесса, "
193 "который имеет доступ к памяти, содержащей блокировку (т. е., блокировка "
194 "может находиться в объекте общей памяти, который используется несколькими "
195 "процессами)."
196
197 #. type: Plain text
198 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
199 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
200 msgid ""
201 "Calling B<pthread_spin_init>() on a spin lock that has already been "
202 "initialized results in undefined behavior."
203 msgstr ""
204 "Вызов B<pthread_spin_init>() с уже инициализированной циклической "
205 "блокировкой приводит к непредсказуемому поведению."
206
207 #. type: Plain text
208 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
209 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
210 msgid ""
211 "The B<pthread_spin_destroy>() function destroys a previously initialized "
212 "spin lock, freeing any resources that were allocated for that lock. "
213 "Destroying a spin lock that has not been previously been initialized or "
214 "destroying a spin lock while another thread holds the lock results in "
215 "undefined behavior."
216 msgstr ""
217 "Функция B<pthread_spin_destroy>() уничтожает ранее инициализированную "
218 "циклическую блокировку, освобождая все выделенные ей ресурсы. Уничтожение "
219 "ещё не инициализированной циклической блокировки или уничтожение циклической "
220 "блокировки, которая захвачена другой нитью,приводит к непредсказуемым "
221 "результатам."
222
223 #. type: Plain text
224 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
225 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
226 msgid ""
227 "Once a spin lock has been destroyed, performing any operation on the lock "
228 "other than once more initializing it with B<pthread_spin_init>() results in "
229 "undefined behavior."
230 msgstr ""
231 "После того, как циклическая блокировка уничтожена, выполнение с ней любой "
232 "операции кроме инициализации B<pthread_spin_init>() приводит к "
233 "непредсказуемому поведению."
234
235 #. type: Plain text
236 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
237 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
238 #, fuzzy
239 #| msgid ""
240 #| "The result of performing operations such as B<pthread_spin_lock>(3), "
241 #| "B<pthread_spin_unlock>(3), and B<pthread_spin_destroy>(3) on I<copies> "
242 #| "of the object referred to by I<lock> is undefined."
243 msgid ""
244 "The result of performing operations such as B<pthread_spin_lock>(3), "
245 "B<pthread_spin_unlock>(3), and B<pthread_spin_destroy>() on I<copies> of "
246 "the object referred to by I<lock> is undefined."
247 msgstr ""
248 "Результат выполнения операций B<pthread_spin_lock>(3), "
249 "B<pthread_spin_unlock>(3) и B<pthread_spin_destroy>(3) с I<копией> объекта, "
250 "на который указывает I<lock>, не определён."
251
252 #. type: SH
253 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
254 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
255 #, no-wrap
256 msgid "RETURN VALUE"
257 msgstr "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ"
258
259 #. type: Plain text
260 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
261 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
262 msgid ""
263 "On success, there functions return zero. On failure, they return an error "
264 "number. In the event that B<pthread_spin_init>() fails, the lock is not "
265 "initialized."
266 msgstr ""
267 "При успешном выполнении эти функции возвращают ноль. При ошибке возвращается "
268 "номер ошибки. Если ошибкой завершается B<pthread_spin_init>(), то "
269 "инициализация блокировки не происходит."
270
271 #. type: SH
272 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
273 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
274 #, no-wrap
275 msgid "ERRORS"
276 msgstr "ОШИБКИ"
277
278 #. These errors don't occur on the glibc implementation
279 #. type: Plain text
280 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
281 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
282 msgid "B<pthread_spin_init>() may fail with the following errors:"
283 msgstr ""
284 "Функция B<pthread_spin_init>() может завершаться со следующими ошибками:"
285
286 #. type: TP
287 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
288 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
289 #, no-wrap
290 msgid "B<EAGAIN>"
291 msgstr "B<EAGAIN>"
292
293 #. type: Plain text
294 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
295 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
296 msgid "The system has insufficient resources to initialize a new spin lock."
297 msgstr ""
298 "В системе не хватает ресурсов для инициализации новой циклической блокировки."
299
300 #. type: TP
301 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
302 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
303 #, no-wrap
304 msgid "B<ENOMEM>"
305 msgstr "B<ENOMEM>"
306
307 #. type: Plain text
308 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
309 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
310 msgid "Insufficient memory to initialize the spin lock."
311 msgstr "Недостаточно памяти для инициализации циклической блокировки."
312
313 #. type: SH
314 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
315 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
316 #, no-wrap
317 msgid "STANDARDS"
318 msgstr "СТАНДАРТЫ"
319
320 #. type: Plain text
321 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
322 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
323 msgid "POSIX.1-2008."
324 msgstr "POSIX.1-2008."
325
326 #. type: SH
327 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
328 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
329 #, no-wrap
330 msgid "HISTORY"
331 msgstr "ИСТОРИЯ"
332
333 #. type: Plain text
334 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
335 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
336 msgid "glibc 2.2. POSIX.1-2001."
337 msgstr "glibc 2.2. POSIX.1-2001."
338
339 #. type: Plain text
340 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
341 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
342 msgid ""
343 "Support for process-shared spin locks is a POSIX option. The option is "
344 "supported in the glibc implementation."
345 msgstr ""
346 "Поддержка общих для процессов циклических блокировок указана в POSIX. Она "
347 "поддерживается реализацией glibc."
348
349 #. type: SH
350 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
351 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
352 #, no-wrap
353 msgid "NOTES"
354 msgstr "ПРИМЕЧАНИЯ"
355
356 #. type: Plain text
357 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
358 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
359 msgid ""
360 "Spin locks should be employed in conjunction with real-time scheduling "
361 "policies (B<SCHED_FIFO>, or possibly B<SCHED_RR>). Use of spin locks with "
362 "nondeterministic scheduling policies such as B<SCHED_OTHER> probably "
363 "indicates a design mistake. The problem is that if a thread operating under "
364 "such a policy is scheduled off the CPU while it holds a spin lock, then "
365 "other threads will waste time spinning on the lock until the lock holder is "
366 "once more rescheduled and releases the lock."
367 msgstr ""
368 "Циклические блокировки должны использоваться вместе с алгоритмами выполнения "
369 "реального времени (B<SCHED_FIFO> или, возможно, B<SCHED_RR>). Использование "
370 "циклических блокировок с недерминированными алгоритмами планирования, такими "
371 "как B<SCHED_OTHER>, вероятно, указывают на ошибки при проектировании. "
372 "Проблема в том, что если нить, выполняющаяся по такому алгоритму, вытеснится "
373 "с ЦП в момент когда она удерживает циклическую блокировку, остальные нити "
374 "будут впустую тратить время на ожидание блокировки, пока держатель не будет "
375 "запланирован к выполнению и не освободит блокировку."
376
377 #. type: Plain text
378 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
379 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
380 msgid ""
381 "If threads create a deadlock situation while employing spin locks, those "
382 "threads will spin forever consuming CPU time."
383 msgstr ""
384 "Если нити создают ситуацию взаимной блокировки при работе с циклическими "
385 "блокировками, то эти нити будут ждать блокировку бесконечно потребляя время "
386 "ЦП."
387
388 #. FIXME . When PTHREAD_MUTEX_ADAPTIVE_NP is one day document
389 #. make reference to it here
390 #. type: Plain text
391 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
392 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
393 msgid ""
394 "User-space spin locks are I<not> applicable as a general locking solution. "
395 "They are, by definition, prone to priority inversion and unbounded spin "
396 "times. A programmer using spin locks must be exceptionally careful not only "
397 "in the code, but also in terms of system configuration, thread placement, "
398 "and priority assignment."
399 msgstr ""
400 "Циклические блокировки пользовательского пространства I<не> применяются в "
401 "качестве обычного решения по блокировкам. Они, по определению, подвержены "
402 "смене приоритетов и неограниченны по времени ожидания. Программист, "
403 "использующий циклические блокировки, должен быть исключительно осмотрителен "
404 "не только с кодом, но и с настройкой системы, размещением нити и назначением "
405 "приоритета."
406
407 #. type: SH
408 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
409 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
410 #, no-wrap
411 msgid "SEE ALSO"
412 msgstr "СМОТРИТЕ ТАКЖЕ"
413
414 #. type: Plain text
415 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
416 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
417 msgid ""
418 "B<pthread_mutex_init>(3), B<pthread_mutex_lock>(3), B<pthread_spin_lock>(3), "
419 "B<pthread_spin_unlock>(3), B<pthreads>(7)"
420 msgstr ""
421 "B<pthread_mutex_init>(3), B<pthread_mutex_lock>(3), B<pthread_spin_lock>(3), "
422 "B<pthread_spin_unlock>(3), B<pthreads>(7)"
423
424 #. type: TH
425 #: debian-trixie
426 #, no-wrap
427 msgid "2024-05-02"
428 msgstr "2 мая 2024 г."
429
430 #. type: TH
431 #: debian-trixie
432 #, no-wrap
433 msgid "Linux man-pages 6.9.1"
434 msgstr "Страницы руководства Linux 6.9.1"
435
436 #. type: Plain text
437 #: debian-trixie
438 msgid "POSIX threads library (I<libpthread>, I<-lpthread>)"
439 msgstr "Библиотека потоков POSIX (I<libpthread>, I<-lpthread>)"
440
441 #. type: TH
442 #: fedora-44 fedora-rawhide
443 #, no-wrap
444 msgid "2024-07-23"
445 msgstr "23 июля 2024 г."
446
447 #. type: TH
448 #: fedora-44 fedora-rawhide
449 #, no-wrap
450 msgid "Linux man-pages 6.13"
451 msgstr "Страницы руководства Linux 6.13"
452
453 #. type: TH
454 #: mageia-cauldron
455 #, no-wrap
456 msgid "Linux man-pages 6.17"
457 msgstr "Страницы руководства Linux 6.17"
458
459 #. type: TH
460 #: opensuse-leap-16-1 opensuse-tumbleweed
461 #, no-wrap
462 msgid "Linux man-pages (unreleased)"
463 msgstr "Страницы руководства Linux (не выпущены)"