Home
last modified time | relevance | path

Searched refs:multiprocessing (Results 1 – 25 of 367) sorted by relevance

12345678910>>...15

/external/python/cpython2/Doc/includes/
Dmp_synchronize.py11 import multiprocessing # may get overwritten
21 print '\n\t\t\t' + str(multiprocessing.current_process()) + ' has finished'
27 running = multiprocessing.Value('i', TASKS)
28 mutex = multiprocessing.Lock()
31 p = multiprocessing.Process(target=value_func, args=(running, mutex))
54 q = multiprocessing.Queue()
56 p = multiprocessing.Process(target=queue_func, args=(q,))
83 cond = multiprocessing.Condition()
85 p = multiprocessing.Process(target=condition_func, args=(cond,))
123 print '%s has finished' % multiprocessing.current_process()
[all …]
Dmp_benchmarks.py8 import time, sys, multiprocessing, threading, Queue, gc
72 c, d = multiprocessing.Pipe()
73 cond = multiprocessing.Condition()
80 p = multiprocessing.Process(target=pipe_func,
183 manager = multiprocessing.Manager()
191 test_queuespeed(multiprocessing.Process, multiprocessing.Queue(),
192 multiprocessing.Condition())
194 test_queuespeed(multiprocessing.Process, manager.Queue(),
206 test_seqspeed(multiprocessing.Array('i', range(10), lock=False))
208 test_seqspeed(multiprocessing.Array('i', range(10), lock=True))
[all …]
Dmp_pool.py8 import multiprocessing
20 multiprocessing.current_process().name,
49 print 'cpu_count() = %d\n' % multiprocessing.cpu_count()
57 pool = multiprocessing.Pool(PROCESSES)
196 except multiprocessing.TimeoutError:
209 except multiprocessing.TimeoutError:
266 pool = multiprocessing.Pool(2)
284 pool = multiprocessing.Pool(2)
301 multiprocessing.freeze_support()
309 import multiprocessing.dummy as multiprocessing namespace
/external/python/cpython2/Lib/multiprocessing/
D__init__.py64 from multiprocessing.process import Process, current_process, active_children
65 from multiprocessing.util import SUBDEBUG, SUBWARNING
97 from multiprocessing.managers import SyncManager
106 from multiprocessing.connection import Pipe
144 from multiprocessing.forking import freeze_support
151 from multiprocessing.util import get_logger
158 from multiprocessing.util import log_to_stderr
165 from multiprocessing import reduction
175 from multiprocessing.synchronize import Lock
182 from multiprocessing.synchronize import RLock
[all …]
/external/grpc-grpc/tools/run_tests/
Drun_microbenchmark.py17 import multiprocessing
87 '%d' % multiprocessing.cpu_count()
117 if len(benchmarks) >= min(16, multiprocessing.cpu_count()):
122 multiprocessing.cpu_count() / 2))
123 jobset.run(profile_analysis, maxjobs=multiprocessing.cpu_count())
124 jobset.run(cleanup, maxjobs=multiprocessing.cpu_count())
130 jobset.run(benchmarks, maxjobs=max(1, multiprocessing.cpu_count() / 2))
131 jobset.run(profile_analysis, maxjobs=multiprocessing.cpu_count())
132 jobset.run(cleanup, maxjobs=multiprocessing.cpu_count())
140 '%d' % multiprocessing.cpu_count()
[all …]
/external/rust/crates/grpcio-sys/grpc/tools/run_tests/
Drun_microbenchmark.py17 import multiprocessing
123 if len(benchmarks) >= min(16, multiprocessing.cpu_count()):
128 multiprocessing.cpu_count() / 2))
129 jobset.run(profile_analysis, maxjobs=multiprocessing.cpu_count())
130 jobset.run(cleanup, maxjobs=multiprocessing.cpu_count())
136 jobset.run(benchmarks, maxjobs=max(1, multiprocessing.cpu_count() / 2))
137 jobset.run(profile_analysis, maxjobs=multiprocessing.cpu_count())
138 jobset.run(cleanup, maxjobs=multiprocessing.cpu_count())
180 jobset.run(profile_analysis, maxjobs=multiprocessing.cpu_count())
181 jobset.run(cleanup, maxjobs=multiprocessing.cpu_count())
[all …]
/external/toolchain-utils/bestflags/
Dpipeline_process.py13 import multiprocessing
19 class PipelineProcess(multiprocessing.Process):
61 multiprocessing.Process.__init__(self)
75 manager = multiprocessing.Manager()
89 work_pool = multiprocessing.Pool(self._num_processes)
92 helper_process = multiprocessing.Process(
Dsteering_test.py11 import multiprocessing
107 manager = multiprocessing.Manager()
111 steering_process = multiprocessing.Process(
154 manager = multiprocessing.Manager()
158 steering_process = multiprocessing.Process(
Dpipeline_worker_test.py13 import multiprocessing
46 manager = multiprocessing.Manager()
52 helper_process = multiprocessing.Process(
96 manager = multiprocessing.Manager()
/external/python/cpython3/Lib/test/
Dmp_fork_bomb.py1 import multiprocessing, sys
11 multiprocessing.set_start_method(sys.argv[1])
13 multiprocessing.set_start_method('spawn')
15 p = multiprocessing.Process(target=foo)
D_test_multiprocessing.py39 import multiprocessing.connection
40 import multiprocessing.dummy
41 import multiprocessing.heap
42 import multiprocessing.managers
43 import multiprocessing.pool
44 import multiprocessing.queues
46 from multiprocessing import util
49 from multiprocessing import reduction
55 from multiprocessing.sharedctypes import Value, copy
61 from multiprocessing import shared_memory
[all …]
Dmp_preload.py1 import multiprocessing
3 multiprocessing.Lock()
11 ctx = multiprocessing.get_context("forkserver")
/external/python/cpython3/Doc/includes/
Dmp_pool.py1 import multiprocessing
13 multiprocessing.current_process().name,
45 with multiprocessing.Pool(PROCESSES) as pool:
132 except multiprocessing.TimeoutError:
145 except multiprocessing.TimeoutError:
152 multiprocessing.freeze_support()
/external/tensorflow/tensorflow/python/distribute/
Dmulti_process_lib.py20 import multiprocessing
63 multiprocessing.context.ForkServerProcess):
69 class AbslForkServerContext(multiprocessing.context.ForkServerContext):
73 multiprocessing = AbslForkServerContext() variable
74 Process = multiprocessing.Process
129 multiprocessing.get_context().set_executable(sys.argv[0])
/external/rust/crates/grpcio-sys/grpc/tools/distrib/python/grpcio_tools/
D_parallel_compile_patch.py27 import multiprocessing
28 BUILD_EXT_COMPILER_JOBS = multiprocessing.cpu_count()
55 import multiprocessing.pool
56 multiprocessing.pool.ThreadPool(BUILD_EXT_COMPILER_JOBS).map(
/external/python/cpython2/Lib/test/
Dtest_multiprocessing.py30 import multiprocessing.dummy
31 import multiprocessing.connection
32 import multiprocessing.managers
33 import multiprocessing.heap
34 import multiprocessing.pool
36 from multiprocessing import util
39 from multiprocessing import reduction
45 from multiprocessing.sharedctypes import Value, copy
283 cpus = multiprocessing.cpu_count()
304 from multiprocessing import forking
[all …]
Dmp_fork_bomb.py1 import multiprocessing
10 r, w = multiprocessing.Pipe(False)
11 p = multiprocessing.Process(target=foo, args=(w,))
/external/llvm-project/llvm/tools/opt-viewer/
Doptpmap.py2 import multiprocessing
40 _current = multiprocessing.Value('i', 0)
41 _total = multiprocessing.Value('i', len(iterable))
47 pool = multiprocessing.Pool(initializer=_init,
/external/chromium-trace/catapult/common/py_utils/py_utils/
Dlock_unittest.py9 import multiprocessing
64 p = multiprocessing.Process(
95 p = multiprocessing.Process(
116 p = multiprocessing.Process(
134 p = multiprocessing.Process(
153 p = multiprocessing.Process(
162 p = multiprocessing.Process(
/external/vixl/tools/
Dthreaded_tests.py28 import multiprocessing
42 n_tests_passed = multiprocessing.Value('i', 0)
43 n_tests_failed = multiprocessing.Value('i', 0)
44 n_tests_skipped = multiprocessing.Value('i', 0)
45 manager = multiprocessing.Manager()
Dthread_pool.py29 import multiprocessing
41 __run_tests_lock__ = multiprocessing.Lock()
49 pool = multiprocessing.Pool(num_threads)
/external/python/cpython2/Doc/library/
Dmultiprocessing.rst1 :mod:`multiprocessing` --- Process-based "threading" interface
4 .. module:: multiprocessing
13 :mod:`multiprocessing` is a package that supports spawning processes using an
14 API similar to the :mod:`threading` module. The :mod:`multiprocessing` package
17 to this, the :mod:`multiprocessing` module allows the programmer to fully
21 The :mod:`multiprocessing` module also introduces APIs which do not have
30 from multiprocessing import Pool
47 In :mod:`multiprocessing`, processes are spawned by creating a :class:`Process`
52 from multiprocessing import Process
64 from multiprocessing import Process
[all …]
/external/python/cpython3/Doc/library/
Dmultiprocessing.rst1 :mod:`multiprocessing` --- Process-based parallelism
4 .. module:: multiprocessing
7 **Source code:** :source:`Lib/multiprocessing/`
14 :mod:`multiprocessing` is a package that supports spawning processes using an
15 API similar to the :mod:`threading` module. The :mod:`multiprocessing` package
19 to this, the :mod:`multiprocessing` module allows the programmer to fully
23 The :mod:`multiprocessing` module also introduces APIs which do not have
25 :class:`~multiprocessing.pool.Pool` object which offers a convenient means of
30 of data parallelism using :class:`~multiprocessing.pool.Pool`, ::
32 from multiprocessing import Pool
[all …]
/external/autotest/site_utils/tester_feedback/
Drequest_multiplexer.py7 from multiprocessing import reduction
10 import multiprocessing
34 self._request_queue = multiprocessing.Queue()
134 self._request_handling_process = multiprocessing.Process(
164 reply_pipe_send, reply_pipe_recv = multiprocessing.Pipe()
/external/llvm/utils/lit/lit/
Drun.py16 import multiprocessing
18 multiprocessing = None variable
118 self.queue = multiprocessing.Queue()
215 if jobs != 1 and use_processes and multiprocessing:
217 task_impl = multiprocessing.Process
218 queue_impl = multiprocessing.Queue
219 canceled_flag = multiprocessing.Value('i', 0)

12345678910>>...15