Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
92e6972c
Kaydet (Commit)
92e6972c
authored
Eki 17, 2010
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Note that maxtasksperchild is new in 2.7.
üst
c9a6320b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
11 deletions
+12
-11
multiprocessing.rst
Doc/library/multiprocessing.rst
+12
-11
No files found.
Doc/library/multiprocessing.rst
Dosyayı görüntüle @
92e6972c
...
@@ -1543,20 +1543,21 @@ with the :class:`Pool` class.
...
@@ -1543,20 +1543,21 @@ with the :class:`Pool` class.
*initializer* is not ``None`` then each worker process will call
*initializer* is not ``None`` then each worker process will call
``initializer(*initargs)`` when it starts.
``initializer(*initargs)`` when it starts.
*maxtasksperchild* is the number of tasks a worker process can complete
.. versionadded:: 2.7
before it will exit and be replaced with a fresh worker process, to enable
*maxtasksperchild* is the number of tasks a worker process can complete
unused resources to be freed. The default *maxtasksperchild* is None, which
before it will exit and be replaced with a fresh worker process, to enable
means worker processes will live as long as the pool.
unused resources to be freed. The default *maxtasksperchild* is None, which
means worker processes will live as long as the pool.
.. note::
.. note::
Worker processes within a :class:`Pool` typically live for the complete
Worker processes within a :class:`Pool` typically live for the complete
duration of the Pool'
s
work
queue
.
A
frequent
pattern
found
in
other
duration of the Pool'
s
work
queue
.
A
frequent
pattern
found
in
other
systems
(
such
as
Apache
,
mod_wsgi
,
etc
)
to
free
resources
held
by
systems
(
such
as
Apache
,
mod_wsgi
,
etc
)
to
free
resources
held
by
workers
is
to
allow
a
worker
within
a
pool
to
complete
only
a
set
workers
is
to
allow
a
worker
within
a
pool
to
complete
only
a
set
amount
of
work
before
being
exiting
,
being
cleaned
up
and
a
new
amount
of
work
before
being
exiting
,
being
cleaned
up
and
a
new
process
spawned
to
replace
the
old
one
.
The
*
maxtasksperchild
*
process
spawned
to
replace
the
old
one
.
The
*
maxtasksperchild
*
argument
to
the
:
class
:`
Pool
`
exposes
this
ability
to
the
end
user
.
argument
to
the
:
class
:`
Pool
`
exposes
this
ability
to
the
end
user
.
..
method
::
apply
(
func
[,
args
[,
kwds
]])
..
method
::
apply
(
func
[,
args
[,
kwds
]])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment