On this page
  1. multiprocessing.current_process
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

multiprocessing.current_process

Prev: multiprocessing.cpu_count | Up: multiprocessing | Next: multiprocessing.Event
Rel: multiprocessing.active_children, multiprocessing.allow_connection_pickling, multiprocessing.Array, multiprocessing.AuthenticationError
Ref: docs.python.org — multiprocessing.current_process
Tags: #public #python3 #stdlib #multiprocessing


Import

import multiprocessing
from multiprocessing import current_process

Signature & Overview

multiprocessing.current_process()

Return process object representing the current process

Usage

import multiprocessing as mp

proc = mp.current_process()
assert proc.name == "MainProcess"

Gotchas

REPL Inspect

from multiprocessing import current_process
help(current_process)

Linked from

Related notes