Skip to main content
S3NS
Documentation Technology areas
  • Application development
  • Application hosting
  • Compute
  • Data analytics and pipelines
  • Databases
  • Networking
  • Observability and monitoring
  • Security
  • Storage
Cross-product tools
  • Access and resources management
  • Google Cloud SDK, languages, frameworks, and tools
  • Infrastructure as code
/
Sign in
  • Python
Overview Guides Reference Samples
S3NS
  • Documentation
    • Overview
    • Guides
    • Reference
    • Samples
  • Technology areas
    • More
  • Cross-product tools
    • More
  • Overview
  • Library reference docs
  • BigQuery DataFrames
  • google-cloud-aiplatform
  • google-cloud-apphub
  • google-cloud-artifact-registry
  • google-cloud-asset
  • google-cloud-bigquery
  • google-cloud-bigquery-storage
  • google-cloud-bigtable
  • google-cloud-chronicle
  • google-cloud-compute
  • google-cloud-containeranalysis
  • google-cloud-datacatalog
  • google-cloud-dataplex
  • google-cloud-datastore
  • google-cloud-datastream
  • google-cloud-deploy
  • google-cloud-devicestreaming
  • google-cloud-discoveryengine
  • google-cloud-documentai
  • google-cloud-edgenetwork
  • google-cloud-financialservices
  • google-cloud-firestore
  • google-cloud-functions
  • google-cloud-gdchardwaremanagement
  • google-cloud-gke-backup
  • google-cloud-iam
  • google-cloud-iap
  • google-cloud-logging
  • google-cloud-lustre
  • google-cloud-modelarmor
  • google-cloud-netapp
  • google-cloud-network-management
  • google-cloud-oracledatabase
  • google-cloud-orchestration-airflow
  • google-cloud-org-policy
  • google-cloud-parallelstore
  • google-cloud-rapidmigrationassessment
  • google-cloud-retail
  • google-cloud-secret-manager
  • google-cloud-securitycentermanagement
  • google-cloud-spanner
  • google-cloud-speech
  • google-cloud-storagebatchoperations
  • google-cloud-texttospeech
  • google-cloud-vision
    • Overview
    • Changelog
    • Multiprocessing
    • 2.0.0 Migration Guide
    • Vision V1
      • image_annotator
        • Overview
        • ImageAnnotatorAsyncClient
        • ImageAnnotatorClient
      • product_search
        • Overview
        • pagers
          • Overview
          • ListProductSetsAsyncPager
          • ListProductSetsPager
          • ListProductsAsyncPager
          • ListProductsInProductSetAsyncPager
          • ListProductsInProductSetPager
          • ListProductsPager
          • ListReferenceImagesAsyncPager
          • ListReferenceImagesPager
        • ProductSearchAsyncClient
        • ProductSearchClient
      • types
        • Overview
        • AddProductToProductSetRequest
        • AnnotateFileRequest
        • AnnotateFileResponse
        • AnnotateImageRequest
        • AnnotateImageResponse
        • AsyncAnnotateFileRequest
        • AsyncAnnotateFileResponse
        • AsyncBatchAnnotateFilesRequest
        • AsyncBatchAnnotateFilesResponse
        • AsyncBatchAnnotateImagesRequest
        • AsyncBatchAnnotateImagesResponse
        • BatchAnnotateFilesRequest
        • BatchAnnotateFilesResponse
        • BatchAnnotateImagesRequest
        • BatchAnnotateImagesResponse
        • BatchOperationMetadata
          • Overview
          • State
        • Block
          • Overview
          • BlockType
        • BoundingPoly
        • ColorInfo
        • CreateProductRequest
        • CreateProductSetRequest
        • CreateReferenceImageRequest
        • CropHint
        • CropHintsAnnotation
        • CropHintsParams
        • DeleteProductRequest
        • DeleteProductSetRequest
        • DeleteReferenceImageRequest
        • DominantColorsAnnotation
        • EntityAnnotation
        • FaceAnnotation
          • Overview
          • Landmark
            • Overview
            • Type
        • Feature
          • Overview
          • Type
        • GcsDestination
        • GcsSource
        • GetProductRequest
        • GetProductSetRequest
        • GetReferenceImageRequest
        • Image
        • ImageAnnotationContext
        • ImageContext
        • ImageProperties
        • ImageSource
        • ImportProductSetsGcsSource
        • ImportProductSetsInputConfig
        • ImportProductSetsRequest
        • ImportProductSetsResponse
        • InputConfig
        • LatLongRect
        • Likelihood
        • ListProductSetsRequest
        • ListProductSetsResponse
        • ListProductsInProductSetRequest
        • ListProductsInProductSetResponse
        • ListProductsRequest
        • ListProductsResponse
        • ListReferenceImagesRequest
        • ListReferenceImagesResponse
        • LocalizedObjectAnnotation
        • LocationInfo
        • NormalizedVertex
        • OperationMetadata
          • Overview
          • State
        • OutputConfig
        • Page
        • Paragraph
        • Position
        • Product
          • Overview
          • KeyValue
        • ProductSearchParams
        • ProductSearchResults
          • Overview
          • GroupedResult
          • ObjectAnnotation
          • Result
        • ProductSet
        • ProductSetPurgeConfig
        • Property
        • PurgeProductsRequest
        • ReferenceImage
        • RemoveProductFromProductSetRequest
        • SafeSearchAnnotation
        • Symbol
        • TextAnnotation
          • Overview
          • DetectedBreak
            • Overview
            • BreakType
          • DetectedLanguage
          • TextProperty
        • TextDetectionParams
        • UpdateProductRequest
        • UpdateProductSetRequest
        • Vertex
        • WebDetection
          • Overview
          • WebEntity
          • WebImage
          • WebLabel
          • WebPage
        • WebDetectionParams
        • Word
    • Vision V1p2beta1
      • image_annotator
        • Overview
        • ImageAnnotatorAsyncClient
        • ImageAnnotatorClient
      • types
        • Overview
        • AnnotateFileResponse
        • AnnotateImageRequest
        • AnnotateImageResponse
        • AsyncAnnotateFileRequest
        • AsyncAnnotateFileResponse
        • AsyncBatchAnnotateFilesRequest
        • AsyncBatchAnnotateFilesResponse
        • BatchAnnotateImagesRequest
        • BatchAnnotateImagesResponse
        • Block
          • Overview
          • BlockType
        • BoundingPoly
        • ColorInfo
        • CropHint
        • CropHintsAnnotation
        • CropHintsParams
        • DominantColorsAnnotation
        • EntityAnnotation
        • FaceAnnotation
          • Overview
          • Landmark
            • Overview
            • Type
        • Feature
          • Overview
          • Type
        • GcsDestination
        • GcsSource
        • Image
        • ImageAnnotationContext
        • ImageContext
        • ImageProperties
        • ImageSource
        • InputConfig
        • LatLongRect
        • Likelihood
        • LocationInfo
        • NormalizedVertex
        • OperationMetadata
          • Overview
          • State
        • OutputConfig
        • Page
        • Paragraph
        • Position
        • Property
        • SafeSearchAnnotation
        • Symbol
        • TextAnnotation
          • Overview
          • DetectedBreak
            • Overview
            • BreakType
          • DetectedLanguage
          • TextProperty
        • TextDetectionParams
        • Vertex
        • WebDetection
          • Overview
          • WebEntity
          • WebImage
          • WebLabel
          • WebPage
        • WebDetectionParams
        • Word
    • Vision V1p3beta1
      • image_annotator
        • Overview
        • ImageAnnotatorAsyncClient
        • ImageAnnotatorClient
      • product_search
        • Overview
        • pagers
          • Overview
          • ListProductSetsAsyncPager
          • ListProductSetsPager
          • ListProductsAsyncPager
          • ListProductsInProductSetAsyncPager
          • ListProductsInProductSetPager
          • ListProductsPager
          • ListReferenceImagesAsyncPager
          • ListReferenceImagesPager
        • ProductSearchAsyncClient
        • ProductSearchClient
      • types
        • Overview
        • AddProductToProductSetRequest
        • AnnotateFileResponse
        • AnnotateImageRequest
        • AnnotateImageResponse
        • AsyncAnnotateFileRequest
        • AsyncAnnotateFileResponse
        • AsyncBatchAnnotateFilesRequest
        • AsyncBatchAnnotateFilesResponse
        • BatchAnnotateImagesRequest
        • BatchAnnotateImagesResponse
        • BatchOperationMetadata
          • Overview
          • State
        • Block
          • Overview
          • BlockType
        • BoundingPoly
        • ColorInfo
        • CreateProductRequest
        • CreateProductSetRequest
        • CreateReferenceImageRequest
        • CropHint
        • CropHintsAnnotation
        • CropHintsParams
        • DeleteProductRequest
        • DeleteProductSetRequest
        • DeleteReferenceImageRequest
        • DominantColorsAnnotation
        • EntityAnnotation
        • FaceAnnotation
          • Overview
          • Landmark
            • Overview
            • Type
        • Feature
          • Overview
          • Type
        • GcsDestination
        • GcsSource
        • GetProductRequest
        • GetProductSetRequest
        • GetReferenceImageRequest
        • Image
        • ImageAnnotationContext
        • ImageContext
        • ImageProperties
        • ImageSource
        • ImportProductSetsGcsSource
        • ImportProductSetsInputConfig
        • ImportProductSetsRequest
        • ImportProductSetsResponse
        • InputConfig
        • LatLongRect
        • Likelihood
        • ListProductSetsRequest
        • ListProductSetsResponse
        • ListProductsInProductSetRequest
        • ListProductsInProductSetResponse
        • ListProductsRequest
        • ListProductsResponse
        • ListReferenceImagesRequest
        • ListReferenceImagesResponse
        • LocalizedObjectAnnotation
        • LocationInfo
        • NormalizedBoundingPoly
        • NormalizedVertex
        • OperationMetadata
          • Overview
          • State
        • OutputConfig
        • Page
        • Paragraph
        • Position
        • Product
          • Overview
          • KeyValue
        • ProductSearchCategory
        • ProductSearchParams
        • ProductSearchResults
          • Overview
          • ProductInfo
          • Result
        • ProductSearchResultsView
        • ProductSet
        • Property
        • ReferenceImage
        • RemoveProductFromProductSetRequest
        • SafeSearchAnnotation
        • Symbol
        • TextAnnotation
          • Overview
          • DetectedBreak
            • Overview
            • BreakType
          • DetectedLanguage
          • TextProperty
        • TextDetectionParams
        • UpdateProductRequest
        • UpdateProductSetRequest
        • Vertex
        • WebDetection
          • Overview
          • WebEntity
          • WebImage
          • WebLabel
          • WebPage
        • WebDetectionParams
        • Word
    • Vision V1p4beta1
      • image_annotator
        • Overview
        • ImageAnnotatorAsyncClient
        • ImageAnnotatorClient
      • product_search
        • Overview
        • pagers
          • Overview
          • ListProductSetsAsyncPager
          • ListProductSetsPager
          • ListProductsAsyncPager
          • ListProductsInProductSetAsyncPager
          • ListProductsInProductSetPager
          • ListProductsPager
          • ListReferenceImagesAsyncPager
          • ListReferenceImagesPager
        • ProductSearchAsyncClient
        • ProductSearchClient
      • types
        • Overview
        • AddProductToProductSetRequest
        • AnnotateFileRequest
        • AnnotateFileResponse
        • AnnotateImageRequest
        • AnnotateImageResponse
        • AsyncAnnotateFileRequest
        • AsyncAnnotateFileResponse
        • AsyncBatchAnnotateFilesRequest
        • AsyncBatchAnnotateFilesResponse
        • AsyncBatchAnnotateImagesRequest
        • AsyncBatchAnnotateImagesResponse
        • BatchAnnotateFilesRequest
        • BatchAnnotateFilesResponse
        • BatchAnnotateImagesRequest
        • BatchAnnotateImagesResponse
        • BatchOperationMetadata
          • Overview
          • State
        • Block
          • Overview
          • BlockType
        • BoundingPoly
        • Celebrity
        • ColorInfo
        • CreateProductRequest
        • CreateProductSetRequest
        • CreateReferenceImageRequest
        • CropHint
        • CropHintsAnnotation
        • CropHintsParams
        • DeleteProductRequest
        • DeleteProductSetRequest
        • DeleteReferenceImageRequest
        • DominantColorsAnnotation
        • EntityAnnotation
        • FaceAnnotation
          • Overview
          • Landmark
            • Overview
            • Type
        • FaceRecognitionParams
        • FaceRecognitionResult
        • Feature
          • Overview
          • Type
        • GcsDestination
        • GcsSource
        • GetProductRequest
        • GetProductSetRequest
        • GetReferenceImageRequest
        • Image
        • ImageAnnotationContext
        • ImageContext
        • ImageProperties
        • ImageSource
        • ImportProductSetsGcsSource
        • ImportProductSetsInputConfig
        • ImportProductSetsRequest
        • ImportProductSetsResponse
        • InputConfig
        • LatLongRect
        • Likelihood
        • ListProductSetsRequest
        • ListProductSetsResponse
        • ListProductsInProductSetRequest
        • ListProductsInProductSetResponse
        • ListProductsRequest
        • ListProductsResponse
        • ListReferenceImagesRequest
        • ListReferenceImagesResponse
        • LocalizedObjectAnnotation
        • LocationInfo
        • NormalizedVertex
        • OperationMetadata
          • Overview
          • State
        • OutputConfig
        • Page
        • Paragraph
        • Position
        • Product
          • Overview
          • KeyValue
        • ProductSearchParams
        • ProductSearchResults
          • Overview
          • GroupedResult
          • ObjectAnnotation
          • Result
        • ProductSet
        • ProductSetPurgeConfig
        • Property
        • PurgeProductsRequest
        • ReferenceImage
        • RemoveProductFromProductSetRequest
        • SafeSearchAnnotation
        • Symbol
        • TextAnnotation
          • Overview
          • DetectedBreak
            • Overview
            • BreakType
          • DetectedLanguage
          • TextProperty
        • TextDetectionParams
        • UpdateProductRequest
        • UpdateProductSetRequest
        • Vertex
        • WebDetection
          • Overview
          • WebEntity
          • WebImage
          • WebLabel
          • WebPage
        • WebDetectionParams
        • Word
  • google-cloud-vm-migration
  • google-cloud-vmwareengine
  • google-cloud-vpc-access
  • google-cloud-webrisk
  • google-cloud-websecurityscanner
  • google-cloud-workflows
  • google-cloud-workstations
  • googleapis-common-protos
  • llama-index-alloydb-pg
  • llama-index-cloud-sql-pg
  • Application development
  • Application hosting
  • Compute
  • Data analytics and pipelines
  • Databases
  • Networking
  • Observability and monitoring
  • Security
  • Storage
  • Access and resources management
  • Google Cloud SDK, languages, frameworks, and tools
  • Infrastructure as code
Some or all of the information on this page might not apply to Trusted Cloud by S3NS.
  • Home
  • Python
  • Documentation
  • Reference
Note: Some or all of the information on this page might not apply to Trusted Cloud. For a list of services that are available in Trusted Cloud, see Services available for Trusted Cloud.
  • 3.10.2 (latest)
  • 3.10.0
  • 3.9.0
  • 3.8.1
  • 3.7.4
  • 3.6.0
  • 3.5.0
  • 3.4.5
  • 3.3.1
  • 3.2.0
  • 3.1.4
  • 3.0.0
  • 2.8.0
  • 2.7.3
  • 2.6.3
  • 2.5.0
  • 2.4.4
  • 2.3.2
  • 2.2.0
  • 2.1.0
  • 2.0.0
  • 1.0.2
  • 0.42.0
  • 0.41.0
  • 0.40.0
  • 0.39.0
  • 0.38.1

Multiprocessing

NOTE: Because this client uses grpc library, it is safe to share instances across threads. In multiprocessing scenarios, the best practice is to create client instances after the invocation of os.fork() by multiprocessing.pool.Pool or multiprocessing.Process.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-07-02 UTC.

  • Terms
  • Privacy
  • Manage cookies