| 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 |
#, fuzzy, no-wrap |
| 31 |
#| msgid "B<sched_setaffinity>(2)" |
| 32 |
msgid "pthread_setaffinity_np" |
| 33 |
msgstr "B<sched_setaffinity>(2)" |
| 34 |
|
| 35 |
#. type: TH |
| 36 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 37 |
#: opensuse-tumbleweed |
| 38 |
#, no-wrap |
| 39 |
msgid "2025-09-21" |
| 40 |
msgstr "21 сентября 2025 г." |
| 41 |
|
| 42 |
#. type: TH |
| 43 |
#: archlinux debian-unstable |
| 44 |
#, fuzzy, no-wrap |
| 45 |
#| msgid "Linux man-pages 6.17" |
| 46 |
msgid "Linux man-pages 6.18" |
| 47 |
msgstr "Справочные страницы Linux 6.17" |
| 48 |
|
| 49 |
#. type: SH |
| 50 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 51 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 52 |
#, no-wrap |
| 53 |
msgid "NAME" |
| 54 |
msgstr "НАИМЕНОВАНИЕ" |
| 55 |
|
| 56 |
#. type: Plain text |
| 57 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 58 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 59 |
msgid "" |
| 60 |
"pthread_setaffinity_np, pthread_getaffinity_np - set/get CPU affinity of a " |
| 61 |
"thread" |
| 62 |
msgstr "" |
| 63 |
"pthread_setaffinity_np, pthread_getaffinity_np - получить/назначить " |
| 64 |
"увязываемый ЦП для нити" |
| 65 |
|
| 66 |
#. type: SH |
| 67 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 68 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 69 |
#, no-wrap |
| 70 |
msgid "LIBRARY" |
| 71 |
msgstr "БИБЛИОТЕКА" |
| 72 |
|
| 73 |
#. type: Plain text |
| 74 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 75 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 76 |
msgid "POSIX threads library (I<libpthread>,\\ I<-lpthread>)" |
| 77 |
msgstr "Библиотека потоков POSIX (I<libpthread>,\\ I<-lpthread>)" |
| 78 |
|
| 79 |
#. type: SH |
| 80 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 81 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 82 |
#, no-wrap |
| 83 |
msgid "SYNOPSIS" |
| 84 |
msgstr "СИНТАКСИС" |
| 85 |
|
| 86 |
#. type: Plain text |
| 87 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 88 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 89 |
#, no-wrap |
| 90 |
msgid "" |
| 91 |
"B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n" |
| 92 |
"B<#include E<lt>pthread.hE<gt>>\n" |
| 93 |
msgstr "" |
| 94 |
"B<#define _GNU_SOURCE> /* Смотрите feature_test_macros(7) */\n" |
| 95 |
"B<#include E<lt>pthread.hE<gt>>\n" |
| 96 |
|
| 97 |
#. type: Plain text |
| 98 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 99 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 100 |
#, no-wrap |
| 101 |
msgid "" |
| 102 |
"B<int pthread_setaffinity_np(pthread_t >I<thread>B<, size_t >I<cpusetsize>B<,>\n" |
| 103 |
"B< const cpu_set_t *>I<cpuset>B<);>\n" |
| 104 |
"B<int pthread_getaffinity_np(pthread_t >I<thread>B<, size_t >I<cpusetsize>B<,>\n" |
| 105 |
"B< cpu_set_t *>I<cpuset>B<);>\n" |
| 106 |
msgstr "" |
| 107 |
"B<int pthread_setaffinity_np(pthread_t >I<thread>B<, size_t >I<cpusetsize>B<,>\n" |
| 108 |
"B< const cpu_set_t *>I<cpuset>B<);>\n" |
| 109 |
"B<int pthread_getaffinity_np(pthread_t >I<thread>B<, size_t >I<cpusetsize>B<,>\n" |
| 110 |
"B< cpu_set_t *>I<cpuset>B<);>\n" |
| 111 |
|
| 112 |
#. type: SH |
| 113 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 114 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 115 |
#, no-wrap |
| 116 |
msgid "DESCRIPTION" |
| 117 |
msgstr "ОПИСАНИЕ" |
| 118 |
|
| 119 |
#. type: Plain text |
| 120 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 121 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 122 |
msgid "" |
| 123 |
"The B<pthread_setaffinity_np>() function sets the CPU affinity mask of the " |
| 124 |
"thread I<thread> to the CPU set pointed to by I<cpuset>. If the call is " |
| 125 |
"successful, and the thread is not currently running on one of the CPUs in " |
| 126 |
"I<cpuset>, then it is migrated to one of those CPUs." |
| 127 |
msgstr "" |
| 128 |
"Функция B<pthread_setaffinity_np>() устанавливает маску увязывания ЦП для " |
| 129 |
"нити I<thread> равной набору ЦП, указанному в I<cpuset>. Если вызов " |
| 130 |
"выполняется без ошибок и нить не запущена ни на одном из ЦП в I<cpuset>, то " |
| 131 |
"она перемещается на один из этих ЦП." |
| 132 |
|
| 133 |
#. type: Plain text |
| 134 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 135 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 136 |
msgid "" |
| 137 |
"The B<pthread_getaffinity_np>() function returns the CPU affinity mask of " |
| 138 |
"the thread I<thread> in the buffer pointed to by I<cpuset>." |
| 139 |
msgstr "" |
| 140 |
"Функция B<pthread_getaffinity_np>() помещает маску увязывания ЦП для нити " |
| 141 |
"I<thread> в буфер, на который указывает I<cpuset>." |
| 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 |
"For more details on CPU affinity masks, see B<sched_setaffinity>(2). For a " |
| 148 |
"description of a set of macros that can be used to manipulate and inspect " |
| 149 |
"CPU sets, see B<CPU_SET>(3)." |
| 150 |
msgstr "" |
| 151 |
"Дополнительную информацию по маскам увязывания ЦП смотрите в " |
| 152 |
"B<sched_setaffinity>(2). Описание набора макросов, которые можно " |
| 153 |
"использовать для просмотра и изменения наборов ЦП, смотрите в B<CPU_SET>(3)." |
| 154 |
|
| 155 |
#. type: Plain text |
| 156 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 157 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 158 |
msgid "" |
| 159 |
"The argument I<cpusetsize> is the length (in bytes) of the buffer pointed to " |
| 160 |
"by I<cpuset>. Typically, this argument would be specified as " |
| 161 |
"I<sizeof(cpu_set_t)>. (It may be some other value, if using the macros " |
| 162 |
"described in B<CPU_SET>(3) for dynamically allocating a CPU set.)" |
| 163 |
msgstr "" |
| 164 |
"В аргументе I<cpusetsize> указывается длина буфера (в байтах), на который " |
| 165 |
"указывает I<cpuset>. Обычно, этот аргумент должен задаваться как " |
| 166 |
"I<sizeof(cpu_set_t)> (он может иметь и другое значение, если используются " |
| 167 |
"макросы динамического выделения набора ЦП, описанные в B<CPU_SET>(3))." |
| 168 |
|
| 169 |
#. type: SH |
| 170 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 171 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 172 |
#, no-wrap |
| 173 |
msgid "RETURN VALUE" |
| 174 |
msgstr "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ" |
| 175 |
|
| 176 |
#. type: Plain text |
| 177 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 178 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 179 |
msgid "" |
| 180 |
"On success, these functions return 0; on error, they return a nonzero error " |
| 181 |
"number." |
| 182 |
msgstr "" |
| 183 |
"При успешном выполнении эти функции возвращают 0; при ошибке возвращается " |
| 184 |
"ненулевой номер ошибки." |
| 185 |
|
| 186 |
#. type: SH |
| 187 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 188 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 189 |
#, no-wrap |
| 190 |
msgid "ERRORS" |
| 191 |
msgstr "ОШИБКИ" |
| 192 |
|
| 193 |
#. type: TP |
| 194 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 195 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 196 |
#, no-wrap |
| 197 |
msgid "B<EFAULT>" |
| 198 |
msgstr "B<EFAULT>" |
| 199 |
|
| 200 |
#. type: Plain text |
| 201 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 202 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 203 |
msgid "A supplied memory address was invalid." |
| 204 |
msgstr "Указан некорректный адрес памяти." |
| 205 |
|
| 206 |
#. type: TP |
| 207 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 208 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 209 |
#, no-wrap |
| 210 |
msgid "B<EINVAL>" |
| 211 |
msgstr "B<EINVAL>" |
| 212 |
|
| 213 |
#. type: Plain text |
| 214 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 215 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 216 |
msgid "" |
| 217 |
"(B<pthread_setaffinity_np>()) The affinity bit mask I<mask> contains no " |
| 218 |
"processors that are currently physically on the system and permitted to the " |
| 219 |
"thread according to any restrictions that may be imposed by the \"cpuset\" " |
| 220 |
"mechanism described in B<cpuset>(7)." |
| 221 |
msgstr "" |
| 222 |
"(B<pthread_setaffinity_np>()) В маске увязывания ЦП I<mask> указаны " |
| 223 |
"процессоры, которых физически нет в системе, и которые разрешены нити " |
| 224 |
"согласно любым ограничениям, которые могут налагаться механизмом «cpuset», " |
| 225 |
"описанном в B<cpuset>(7)." |
| 226 |
|
| 227 |
#. cpumask_t |
| 228 |
#. The raw sched_getaffinity() system call returns the size (in bytes) |
| 229 |
#. of the cpumask_t type. |
| 230 |
#. type: Plain text |
| 231 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 232 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 233 |
msgid "" |
| 234 |
"(B<pthread_setaffinity_np>()) I<cpuset> specified a CPU that was outside " |
| 235 |
"the set supported by the kernel. (The kernel configuration option " |
| 236 |
"B<CONFIG_NR_CPUS> defines the range of the set supported by the kernel data " |
| 237 |
"type used to represent CPU sets.)" |
| 238 |
msgstr "" |
| 239 |
"(B<pthread_setaffinity_np>()) В I<cpuset> указан ЦП, который находится вне " |
| 240 |
"набора поддерживаемых ядром (в параметре сборки ядра B<CONFIG_NR_CPUS> " |
| 241 |
"определён диапазон для набора, поддерживаемого типом данных ядра, который " |
| 242 |
"используется для представления наборов ЦП)." |
| 243 |
|
| 244 |
#. type: Plain text |
| 245 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 246 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 247 |
msgid "" |
| 248 |
"(B<pthread_getaffinity_np>()) I<cpusetsize> is smaller than the size of the " |
| 249 |
"affinity mask used by the kernel." |
| 250 |
msgstr "" |
| 251 |
"(B<pthread_getaffinity_np>()) Значение I<cpusetsize> меньше размера маски " |
| 252 |
"увязывания, используемой в ядре." |
| 253 |
|
| 254 |
#. type: TP |
| 255 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 256 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 257 |
#, no-wrap |
| 258 |
msgid "B<ESRCH>" |
| 259 |
msgstr "B<ESRCH>" |
| 260 |
|
| 261 |
#. type: Plain text |
| 262 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 263 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 264 |
msgid "No thread with the ID I<thread> could be found." |
| 265 |
msgstr "Нить с идентификатором I<thread> не найдена." |
| 266 |
|
| 267 |
#. type: SH |
| 268 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 269 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 270 |
#, no-wrap |
| 271 |
msgid "ATTRIBUTES" |
| 272 |
msgstr "АТРИБУТЫ" |
| 273 |
|
| 274 |
#. type: Plain text |
| 275 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 276 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 277 |
msgid "" |
| 278 |
"For an explanation of the terms used in this section, see B<attributes>(7)." |
| 279 |
msgstr "Описание терминов данного раздела смотрите в B<attributes>(7)." |
| 280 |
|
| 281 |
#. type: tbl table |
| 282 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 283 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 284 |
#, no-wrap |
| 285 |
msgid "Interface" |
| 286 |
msgstr "Интерфейс" |
| 287 |
|
| 288 |
#. type: tbl table |
| 289 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 290 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 291 |
#, no-wrap |
| 292 |
msgid "Attribute" |
| 293 |
msgstr "Атрибут" |
| 294 |
|
| 295 |
#. type: tbl table |
| 296 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 297 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 298 |
#, no-wrap |
| 299 |
msgid "Value" |
| 300 |
msgstr "Значение" |
| 301 |
|
| 302 |
#. type: tbl table |
| 303 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 304 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 305 |
#, no-wrap |
| 306 |
msgid ".na\n" |
| 307 |
msgstr ".na\n" |
| 308 |
|
| 309 |
#. type: tbl table |
| 310 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 311 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 312 |
#, no-wrap |
| 313 |
msgid ".nh\n" |
| 314 |
msgstr ".nh\n" |
| 315 |
|
| 316 |
#. type: tbl table |
| 317 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 318 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 319 |
#, no-wrap |
| 320 |
msgid "" |
| 321 |
"B<pthread_setaffinity_np>(),\n" |
| 322 |
"B<pthread_getaffinity_np>()" |
| 323 |
msgstr "" |
| 324 |
"B<pthread_setaffinity_np>(),\n" |
| 325 |
"B<pthread_getaffinity_np>()" |
| 326 |
|
| 327 |
#. type: tbl table |
| 328 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 329 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 330 |
#, no-wrap |
| 331 |
msgid "Thread safety" |
| 332 |
msgstr "Безвредность в нитях" |
| 333 |
|
| 334 |
#. type: tbl table |
| 335 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 336 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 337 |
#, no-wrap |
| 338 |
msgid "MT-Safe" |
| 339 |
msgstr "MT-Safe" |
| 340 |
|
| 341 |
#. type: SH |
| 342 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 343 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 344 |
#, no-wrap |
| 345 |
msgid "STANDARDS" |
| 346 |
msgstr "СТАНДАРТЫ" |
| 347 |
|
| 348 |
#. type: Plain text |
| 349 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 350 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 351 |
msgid "GNU; hence the suffix \"_np\" (nonportable) in the names." |
| 352 |
msgstr "" |
| 353 |
"GNU, о чём свидетельствует наличие суффикса «_np» (nonportable) в именах." |
| 354 |
|
| 355 |
#. type: SH |
| 356 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 357 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 358 |
#, no-wrap |
| 359 |
msgid "HISTORY" |
| 360 |
msgstr "ИСТОРИЯ" |
| 361 |
|
| 362 |
#. type: Plain text |
| 363 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 364 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 365 |
msgid "glibc 2.3.4." |
| 366 |
msgstr "glibc 2.3.4." |
| 367 |
|
| 368 |
#. type: Plain text |
| 369 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 370 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 371 |
msgid "" |
| 372 |
"In glibc 2.3.3 only, versions of these functions were provided that did not " |
| 373 |
"have a I<cpusetsize> argument. Instead the CPU set size given to the " |
| 374 |
"underlying system calls was always I<sizeof(cpu_set_t)>." |
| 375 |
msgstr "" |
| 376 |
"В glibc 2.3.3 версии этих функций не имеют аргумента I<cpusetsize>. Вместо " |
| 377 |
"него размер набора ЦП, передаваемый используемым системным вызовам, всегда " |
| 378 |
"равен I<sizeof(cpu_set_t)>." |
| 379 |
|
| 380 |
#. type: SH |
| 381 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 382 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 383 |
#, no-wrap |
| 384 |
msgid "NOTES" |
| 385 |
msgstr "ПРИМЕЧАНИЯ" |
| 386 |
|
| 387 |
#. type: Plain text |
| 388 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 389 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 390 |
msgid "" |
| 391 |
"After a call to B<pthread_setaffinity_np>(), the set of CPUs on which the " |
| 392 |
"thread will actually run is the intersection of the set specified in the " |
| 393 |
"I<cpuset> argument and the set of CPUs actually present on the system. The " |
| 394 |
"system may further restrict the set of CPUs on which the thread runs if the " |
| 395 |
"\"cpuset\" mechanism described in B<cpuset>(7) is being used. These " |
| 396 |
"restrictions on the actual set of CPUs on which the thread will run are " |
| 397 |
"silently imposed by the kernel." |
| 398 |
msgstr "" |
| 399 |
"После вызова B<pthread_setaffinity_np>() набор процессоров, на которых " |
| 400 |
"действительно будет выполняться нить, вычисляется пересечением набора из " |
| 401 |
"аргумента I<cpuset> и набором процессоров, присутствующих в системе. В " |
| 402 |
"дальнейшем, система может ограничить набор процессоров нити, если " |
| 403 |
"задействован механизм «cpuset», описанный в B<cpuset>(7). Эти ограничения на " |
| 404 |
"действительный набор процессоров, используемых для нити, без уведомления " |
| 405 |
"налагаются ядром." |
| 406 |
|
| 407 |
#. type: Plain text |
| 408 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 409 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 410 |
msgid "" |
| 411 |
"These functions are implemented on top of the B<sched_setaffinity>(2) and " |
| 412 |
"B<sched_getaffinity>(2) system calls." |
| 413 |
msgstr "" |
| 414 |
"Эти функции реализованы через системные вызовы B<sched_setaffinity>(2) и " |
| 415 |
"B<sched_getaffinity>(2)." |
| 416 |
|
| 417 |
#. type: Plain text |
| 418 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 419 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 420 |
msgid "" |
| 421 |
"A new thread created by B<pthread_create>(3) inherits a copy of its " |
| 422 |
"creator's CPU affinity mask." |
| 423 |
msgstr "" |
| 424 |
"Новая нить, созданная B<pthread_create>(3), наследует копию маски увязывания " |
| 425 |
"ЦП своего создателя." |
| 426 |
|
| 427 |
#. type: SH |
| 428 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 429 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 430 |
#, no-wrap |
| 431 |
msgid "EXAMPLES" |
| 432 |
msgstr "ПРИМЕРЫ" |
| 433 |
|
| 434 |
#. type: Plain text |
| 435 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 436 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 437 |
msgid "" |
| 438 |
"In the following program, the main thread uses B<pthread_setaffinity_np>() " |
| 439 |
"to set its CPU affinity mask to include CPUs 0 to 7 (which may not all be " |
| 440 |
"available on the system), and then calls B<pthread_getaffinity_np>() to " |
| 441 |
"check the resulting CPU affinity mask of the thread." |
| 442 |
msgstr "" |
| 443 |
"В этой программе главная нить использует B<pthread_setaffinity_np>() для " |
| 444 |
"включения в свою маску увязывания ЦП процессоры с 0 по 7 (которых может не " |
| 445 |
"быть в системе), а затем вызывает B<pthread_getaffinity_np>() для проверки " |
| 446 |
"получившейся маски увязывания ЦП у нити." |
| 447 |
|
| 448 |
#. type: Plain text |
| 449 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 450 |
#: opensuse-tumbleweed |
| 451 |
#, no-wrap |
| 452 |
msgid "" |
| 453 |
"#define _GNU_SOURCE\n" |
| 454 |
"#include E<lt>err.hE<gt>\n" |
| 455 |
"#include E<lt>pthread.hE<gt>\n" |
| 456 |
"#include E<lt>sched.hE<gt>\n" |
| 457 |
"#include E<lt>stdio.hE<gt>\n" |
| 458 |
"#include E<lt>stdlib.hE<gt>\n" |
| 459 |
"\\&\n" |
| 460 |
"int\n" |
| 461 |
"main(void)\n" |
| 462 |
"{\n" |
| 463 |
" int s;\n" |
| 464 |
" cpu_set_t cpuset;\n" |
| 465 |
" pthread_t thread;\n" |
| 466 |
"\\&\n" |
| 467 |
" thread = pthread_self();\n" |
| 468 |
"\\&\n" |
| 469 |
" /* Set affinity mask to include CPUs 0 to 7. */\n" |
| 470 |
"\\&\n" |
| 471 |
" CPU_ZERO(&cpuset);\n" |
| 472 |
" for (size_t j = 0; j E<lt> 8; j++)\n" |
| 473 |
" CPU_SET(j, &cpuset);\n" |
| 474 |
"\\&\n" |
| 475 |
" s = pthread_setaffinity_np(thread, sizeof(cpuset), &cpuset);\n" |
| 476 |
" if (s != 0)\n" |
| 477 |
" errc(EXIT_FAILURE, s, \"pthread_setaffinity_np\");\n" |
| 478 |
"\\&\n" |
| 479 |
" /* Check the actual affinity mask assigned to the thread. */\n" |
| 480 |
"\\&\n" |
| 481 |
" s = pthread_getaffinity_np(thread, sizeof(cpuset), &cpuset);\n" |
| 482 |
" if (s != 0)\n" |
| 483 |
" errc(EXIT_FAILURE, s, \"pthread_getaffinity_np\");\n" |
| 484 |
"\\&\n" |
| 485 |
" printf(\"Set returned by pthread_getaffinity_np() contained:\\[rs]n\");\n" |
| 486 |
" for (size_t j = 0; j E<lt> CPU_SETSIZE; j++)\n" |
| 487 |
" if (CPU_ISSET(j, &cpuset))\n" |
| 488 |
" printf(\" CPU %zu\\[rs]n\", j);\n" |
| 489 |
"\\&\n" |
| 490 |
" exit(EXIT_SUCCESS);\n" |
| 491 |
"}\n" |
| 492 |
msgstr "" |
| 493 |
|
| 494 |
#. SRC END |
| 495 |
#. type: SH |
| 496 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 497 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 498 |
#, no-wrap |
| 499 |
msgid "SEE ALSO" |
| 500 |
msgstr "СМОТРИТЕ ТАКЖЕ" |
| 501 |
|
| 502 |
#. type: Plain text |
| 503 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 504 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 505 |
msgid "" |
| 506 |
"B<sched_setaffinity>(2), B<CPU_SET>(3), B<pthread_attr_setaffinity_np>(3), " |
| 507 |
"B<pthread_self>(3), B<sched_getcpu>(3), B<cpuset>(7), B<pthreads>(7), " |
| 508 |
"B<sched>(7)" |
| 509 |
msgstr "" |
| 510 |
"B<sched_setaffinity>(2), B<CPU_SET>(3), B<pthread_attr_setaffinity_np>(3), " |
| 511 |
"B<pthread_self>(3), B<sched_getcpu>(3), B<cpuset>(7), B<pthreads>(7), " |
| 512 |
"B<sched>(7)" |
| 513 |
|
| 514 |
#. type: TH |
| 515 |
#: debian-trixie |
| 516 |
#, no-wrap |
| 517 |
msgid "2024-06-15" |
| 518 |
msgstr "15 июня 2024 г." |
| 519 |
|
| 520 |
#. type: TH |
| 521 |
#: debian-trixie |
| 522 |
#, no-wrap |
| 523 |
msgid "Linux man-pages 6.9.1" |
| 524 |
msgstr "Страницы руководства Linux 6.9.1" |
| 525 |
|
| 526 |
#. type: Plain text |
| 527 |
#: debian-trixie |
| 528 |
msgid "POSIX threads library (I<libpthread>, I<-lpthread>)" |
| 529 |
msgstr "Библиотека потоков POSIX (I<libpthread>, I<-lpthread>)" |
| 530 |
|
| 531 |
#. type: Plain text |
| 532 |
#: debian-trixie |
| 533 |
#, no-wrap |
| 534 |
msgid "" |
| 535 |
"#define _GNU_SOURCE\n" |
| 536 |
"#include E<lt>err.hE<gt>\n" |
| 537 |
"#include E<lt>errno.hE<gt>\n" |
| 538 |
"#include E<lt>pthread.hE<gt>\n" |
| 539 |
"#include E<lt>stdio.hE<gt>\n" |
| 540 |
"#include E<lt>stdlib.hE<gt>\n" |
| 541 |
"\\&\n" |
| 542 |
"int\n" |
| 543 |
"main(void)\n" |
| 544 |
"{\n" |
| 545 |
" int s;\n" |
| 546 |
" cpu_set_t cpuset;\n" |
| 547 |
" pthread_t thread;\n" |
| 548 |
"\\&\n" |
| 549 |
" thread = pthread_self();\n" |
| 550 |
"\\&\n" |
| 551 |
" /* Set affinity mask to include CPUs 0 to 7. */\n" |
| 552 |
"\\&\n" |
| 553 |
" CPU_ZERO(&cpuset);\n" |
| 554 |
" for (size_t j = 0; j E<lt> 8; j++)\n" |
| 555 |
" CPU_SET(j, &cpuset);\n" |
| 556 |
"\\&\n" |
| 557 |
" s = pthread_setaffinity_np(thread, sizeof(cpuset), &cpuset);\n" |
| 558 |
" if (s != 0)\n" |
| 559 |
" errc(EXIT_FAILURE, s, \"pthread_setaffinity_np\");\n" |
| 560 |
"\\&\n" |
| 561 |
" /* Check the actual affinity mask assigned to the thread. */\n" |
| 562 |
"\\&\n" |
| 563 |
" s = pthread_getaffinity_np(thread, sizeof(cpuset), &cpuset);\n" |
| 564 |
" if (s != 0)\n" |
| 565 |
" errc(EXIT_FAILURE, s, \"pthread_getaffinity_np\");\n" |
| 566 |
"\\&\n" |
| 567 |
" printf(\"Set returned by pthread_getaffinity_np() contained:\\[rs]n\");\n" |
| 568 |
" for (size_t j = 0; j E<lt> CPU_SETSIZE; j++)\n" |
| 569 |
" if (CPU_ISSET(j, &cpuset))\n" |
| 570 |
" printf(\" CPU %zu\\[rs]n\", j);\n" |
| 571 |
"\\&\n" |
| 572 |
" exit(EXIT_SUCCESS);\n" |
| 573 |
"}\n" |
| 574 |
msgstr "" |
| 575 |
|
| 576 |
#. type: TH |
| 577 |
#: fedora-44 fedora-rawhide |
| 578 |
#, no-wrap |
| 579 |
msgid "2024-11-03" |
| 580 |
msgstr "3 ноября 2024 г." |
| 581 |
|
| 582 |
#. type: TH |
| 583 |
#: fedora-44 fedora-rawhide |
| 584 |
#, no-wrap |
| 585 |
msgid "Linux man-pages 6.13" |
| 586 |
msgstr "Страницы руководства Linux 6.13" |
| 587 |
|
| 588 |
#. type: Plain text |
| 589 |
#: fedora-44 fedora-rawhide |
| 590 |
#, no-wrap |
| 591 |
msgid "" |
| 592 |
"#define _GNU_SOURCE\n" |
| 593 |
"#include E<lt>err.hE<gt>\n" |
| 594 |
"#include E<lt>pthread.hE<gt>\n" |
| 595 |
"#include E<lt>sched.hE<gt>\n" |
| 596 |
"#include E<lt>stdio.hE<gt>\n" |
| 597 |
"#include E<lt>stdlib.hE<gt>\n" |
| 598 |
"\\&\n" |
| 599 |
"int\n" |
| 600 |
"main(void)\n" |
| 601 |
"{\n" |
| 602 |
" int s;\n" |
| 603 |
" cpu_set_t cpuset;\n" |
| 604 |
" pthread_t thread;\n" |
| 605 |
"\\&\n" |
| 606 |
" thread = pthread_self();\n" |
| 607 |
"\\&\n" |
| 608 |
" /* Set affinity mask to include CPUs 0 to 7. */\n" |
| 609 |
"\\&\n" |
| 610 |
" CPU_ZERO(&cpuset);\n" |
| 611 |
" for (size_t j = 0; j E<lt> 8; j++)\n" |
| 612 |
" CPU_SET(j, &cpuset);\n" |
| 613 |
"\\&\n" |
| 614 |
" s = pthread_setaffinity_np(thread, sizeof(cpuset), &cpuset);\n" |
| 615 |
" if (s != 0)\n" |
| 616 |
" errc(EXIT_FAILURE, s, \"pthread_setaffinity_np\");\n" |
| 617 |
"\\&\n" |
| 618 |
" /* Check the actual affinity mask assigned to the thread. */\n" |
| 619 |
"\\&\n" |
| 620 |
" s = pthread_getaffinity_np(thread, sizeof(cpuset), &cpuset);\n" |
| 621 |
" if (s != 0)\n" |
| 622 |
" errc(EXIT_FAILURE, s, \"pthread_getaffinity_np\");\n" |
| 623 |
"\\&\n" |
| 624 |
" printf(\"Set returned by pthread_getaffinity_np() contained:\\[rs]n\");\n" |
| 625 |
" for (size_t j = 0; j E<lt> CPU_SETSIZE; j++)\n" |
| 626 |
" if (CPU_ISSET(j, &cpuset))\n" |
| 627 |
" printf(\" CPU %zu\\[rs]n\", j);\n" |
| 628 |
"\\&\n" |
| 629 |
" exit(EXIT_SUCCESS);\n" |
| 630 |
"}\n" |
| 631 |
msgstr "" |
| 632 |
|
| 633 |
#. type: TH |
| 634 |
#: mageia-cauldron |
| 635 |
#, no-wrap |
| 636 |
msgid "Linux man-pages 6.17" |
| 637 |
msgstr "Страницы руководства Linux 6.17" |
| 638 |
|
| 639 |
#. type: TH |
| 640 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 641 |
#, no-wrap |
| 642 |
msgid "Linux man-pages (unreleased)" |
| 643 |
msgstr "Страницы руководства Linux (не выпущены)" |