Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(7)

Side by Side Diff: Doc/library/multiprocessing.rst

Issue 10639: reindent.py converts newlines to platform default
Patch Set: Created 8 years, 8 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Doc/library/mmap.rst ('k') | Doc/library/nntplib.rst » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 :mod:`multiprocessing` --- Process-based parallelism 1 :mod:`multiprocessing` --- Process-based parallelism
2 ==================================================== 2 ====================================================
3 3
4 .. module:: multiprocessing 4 .. module:: multiprocessing
5 :synopsis: Process-based parallelism. 5 :synopsis: Process-based parallelism.
6 6
7 7
8 Introduction 8 Introduction
9 ------------ 9 ------------
10 10
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 336
337 .. method:: start() 337 .. method:: start()
338 338
339 Start the process's activity. 339 Start the process's activity.
340 340
341 This must be called at most once per process object. It arranges for the 341 This must be called at most once per process object. It arranges for the
342 object's :meth:`run` method to be invoked in a separate process. 342 object's :meth:`run` method to be invoked in a separate process.
343 343
344 .. method:: join([timeout]) 344 .. method:: join([timeout])
345 345
346 If the optional argument *timeout* is ``None`` (the default), the method 346 Block the calling thread until the process whose :meth:`join` method is
347 blocks until the process whose :meth:`join` method is called terminates. 347 called terminates or until the optional timeout occurs.
348 If *timeout* is a positive number, it blocks at most *timeout* seconds. 348
349 If *timeout* is ``None`` then there is no timeout.
349 350
350 A process can be joined many times. 351 A process can be joined many times.
351 352
352 A process cannot join itself because this would cause a deadlock. It is 353 A process cannot join itself because this would cause a deadlock. It is
353 an error to attempt to join a process before it has been started. 354 an error to attempt to join a process before it has been started.
354 355
355 .. attribute:: name 356 .. attribute:: name
356 357
357 The process's name. 358 The process's name.
358 359
(...skipping 1926 matching lines...) Expand 10 before | Expand all | Expand 10 after
2285 :class:`~http.server.SimpleHTTPRequestHandler` instance while sharing a single 2286 :class:`~http.server.SimpleHTTPRequestHandler` instance while sharing a single
2286 listening socket. 2287 listening socket.
2287 2288
2288 .. literalinclude:: ../includes/mp_webserver.py 2289 .. literalinclude:: ../includes/mp_webserver.py
2289 2290
2290 2291
2291 Some simple benchmarks comparing :mod:`multiprocessing` with :mod:`threading`: 2292 Some simple benchmarks comparing :mod:`multiprocessing` with :mod:`threading`:
2292 2293
2293 .. literalinclude:: ../includes/mp_benchmarks.py 2294 .. literalinclude:: ../includes/mp_benchmarks.py
2294 2295
OLDNEW
« no previous file with comments | « Doc/library/mmap.rst ('k') | Doc/library/nntplib.rst » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+