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
78da3bc0
Kaydet (Commit)
78da3bc0
authored
Tem 13, 2012
tarafından
Eli Bendersky
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Additional fixes to multiprocessing docs (for issue #13686)
üst
8a80502d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
13 deletions
+10
-13
multiprocessing.rst
Doc/library/multiprocessing.rst
+10
-13
No files found.
Doc/library/multiprocessing.rst
Dosyayı görüntüle @
78da3bc0
...
@@ -663,8 +663,8 @@ For an example of the usage of queues for interprocess communication see
...
@@ -663,8 +663,8 @@ For an example of the usage of queues for interprocess communication see
..
method
::
task_done
()
..
method
::
task_done
()
Indicate
that
a
formerly
enqueued
task
is
complete
.
Used
by
queue
consumer
Indicate
that
a
formerly
enqueued
task
is
complete
.
Used
by
queue
thread
s
.
For
each
:
meth
:`~
Queue
.
get
`
used
to
fetch
a
task
,
a
subsequent
consumer
s
.
For
each
:
meth
:`~
Queue
.
get
`
used
to
fetch
a
task
,
a
subsequent
call
to
:
meth
:`
task_done
`
tells
the
queue
that
the
processing
on
the
task
call
to
:
meth
:`
task_done
`
tells
the
queue
that
the
processing
on
the
task
is
complete
.
is
complete
.
...
@@ -681,7 +681,7 @@ For an example of the usage of queues for interprocess communication see
...
@@ -681,7 +681,7 @@ For an example of the usage of queues for interprocess communication see
Block
until
all
items
in
the
queue
have
been
gotten
and
processed
.
Block
until
all
items
in
the
queue
have
been
gotten
and
processed
.
The
count
of
unfinished
tasks
goes
up
whenever
an
item
is
added
to
the
The
count
of
unfinished
tasks
goes
up
whenever
an
item
is
added
to
the
queue
.
The
count
goes
down
whenever
a
consumer
thread
calls
queue
.
The
count
goes
down
whenever
a
consumer
calls
:
meth
:`
task_done
`
to
indicate
that
the
item
was
retrieved
and
all
work
on
:
meth
:`
task_done
`
to
indicate
that
the
item
was
retrieved
and
all
work
on
it
is
complete
.
When
the
count
of
unfinished
tasks
drops
to
zero
,
it
is
complete
.
When
the
count
of
unfinished
tasks
drops
to
zero
,
:
meth
:`~
Queue
.
join
`
unblocks
.
:
meth
:`~
Queue
.
join
`
unblocks
.
...
@@ -926,12 +926,6 @@ object -- see :ref:`multiprocessing-managers`.
...
@@ -926,12 +926,6 @@ object -- see :ref:`multiprocessing-managers`.
..
class
::
Event
()
..
class
::
Event
()
A
clone
of
:
class
:`
threading
.
Event
`.
A
clone
of
:
class
:`
threading
.
Event
`.
This
method
returns
the
state
of
the
internal
semaphore
on
exit
,
so
it
will
always
return
``
True
``
except
if
a
timeout
is
given
and
the
operation
times
out
.
..
versionchanged
::
3.1
Previously
,
the
method
always
returned
``
None
``.
..
class
::
Lock
()
..
class
::
Lock
()
...
@@ -977,7 +971,8 @@ inherited by child processes.
...
@@ -977,7 +971,8 @@ inherited by child processes.
.. function:: Value(typecode_or_type, *args, lock=True)
.. function:: Value(typecode_or_type, *args, lock=True)
Return a :mod:`ctypes` object allocated from shared memory. By default the
Return a :mod:`ctypes` object allocated from shared memory. By default the
return value is actually a synchronized wrapper for the object.
return value is actually a synchronized wrapper for the object. The object
itself can be accessed via the *value* attribute of a :class:`Value`.
*typecode_or_type* determines the type of the returned object: it is either a
*typecode_or_type* determines the type of the returned object: it is either a
ctypes type or a one character typecode of the kind used by the :mod:`array`
ctypes type or a one character typecode of the kind used by the :mod:`array`
...
@@ -1183,8 +1178,10 @@ Managers
...
@@ -1183,8 +1178,10 @@ Managers
~~~~~~~~
~~~~~~~~
Managers provide a way to create data which can be shared between different
Managers provide a way to create data which can be shared between different
processes. A manager object controls a server process which manages *shared
processes, including sharing over a network between processes running on
objects*. Other processes can access the shared objects by using proxies.
different machines. A manager object controls a server process which manages
*shared objects*. Other processes can access the shared objects by using
proxies.
.. function:: multiprocessing.Manager()
.. function:: multiprocessing.Manager()
...
@@ -2211,7 +2208,7 @@ Avoid shared state
...
@@ -2211,7 +2208,7 @@ Avoid shared state
It
is
probably
best
to
stick
to
using
queues
or
pipes
for
communication
It
is
probably
best
to
stick
to
using
queues
or
pipes
for
communication
between
processes
rather
than
using
the
lower
level
synchronization
between
processes
rather
than
using
the
lower
level
synchronization
primitives
from
the
:
mod
:`
threading
`
module
.
primitives
.
Picklability
Picklability
...
...
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