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-os-config
    • Overview
    • Changelog
    • Multiprocessing
    • Osconfig V1
      • os_config_service
        • Overview
        • pagers
          • Overview
          • ListPatchDeploymentsAsyncPager
          • ListPatchDeploymentsPager
          • ListPatchJobInstanceDetailsAsyncPager
          • ListPatchJobInstanceDetailsPager
          • ListPatchJobsAsyncPager
          • ListPatchJobsPager
        • OsConfigServiceAsyncClient
        • OsConfigServiceClient
      • os_config_zonal_service
        • Overview
        • pagers
          • Overview
          • ListInventoriesAsyncPager
          • ListInventoriesPager
          • ListOSPolicyAssignmentReportsAsyncPager
          • ListOSPolicyAssignmentReportsPager
          • ListOSPolicyAssignmentRevisionsAsyncPager
          • ListOSPolicyAssignmentRevisionsPager
          • ListOSPolicyAssignmentsAsyncPager
          • ListOSPolicyAssignmentsPager
          • ListVulnerabilityReportsAsyncPager
          • ListVulnerabilityReportsPager
        • OsConfigZonalServiceAsyncClient
        • OsConfigZonalServiceClient
      • types
        • Overview
        • AptSettings
          • Overview
          • Type
        • CVSSv3
          • Overview
          • AttackComplexity
          • AttackVector
          • Impact
          • PrivilegesRequired
          • Scope
          • UserInteraction
        • CancelPatchJobRequest
        • CreateOSPolicyAssignmentRequest
        • CreatePatchDeploymentRequest
        • DeleteOSPolicyAssignmentRequest
        • DeletePatchDeploymentRequest
        • ExecStep
        • ExecStepConfig
          • Overview
          • Interpreter
        • ExecutePatchJobRequest
        • FixedOrPercent
        • GcsObject
        • GetInventoryRequest
        • GetOSPolicyAssignmentReportRequest
        • GetOSPolicyAssignmentRequest
        • GetPatchDeploymentRequest
        • GetPatchJobRequest
        • GetVulnerabilityReportRequest
        • GooSettings
        • Instance
          • Overview
          • PatchState
        • Inventory
          • Overview
          • Item
            • Overview
            • OriginType
            • Type
          • ItemsEntry
          • OsInfo
          • SoftwarePackage
          • VersionedPackage
          • WindowsApplication
          • WindowsQuickFixEngineeringPackage
          • WindowsUpdatePackage
            • Overview
            • WindowsUpdateCategory
          • ZypperPatch
        • InventoryView
        • ListInventoriesRequest
        • ListInventoriesResponse
        • ListOSPolicyAssignmentReportsRequest
        • ListOSPolicyAssignmentReportsResponse
        • ListOSPolicyAssignmentRevisionsRequest
        • ListOSPolicyAssignmentRevisionsResponse
        • ListOSPolicyAssignmentsRequest
        • ListOSPolicyAssignmentsResponse
        • ListPatchDeploymentsRequest
        • ListPatchDeploymentsResponse
        • ListPatchJobInstanceDetailsRequest
        • ListPatchJobInstanceDetailsResponse
        • ListPatchJobsRequest
        • ListPatchJobsResponse
        • ListVulnerabilityReportsRequest
        • ListVulnerabilityReportsResponse
        • MonthlySchedule
        • OSPolicy
          • Overview
          • InventoryFilter
          • Mode
          • Resource
            • Overview
            • ExecResource
              • Overview
              • Exec
                • Overview
                • Interpreter
            • File
              • Overview
              • Gcs
              • Remote
            • FileResource
              • Overview
              • DesiredState
            • PackageResource
              • Overview
              • APT
              • Deb
              • DesiredState
              • GooGet
              • MSI
              • RPM
              • YUM
              • Zypper
            • RepositoryResource
              • Overview
              • AptRepository
                • Overview
                • ArchiveType
              • GooRepository
              • YumRepository
              • ZypperRepository
          • ResourceGroup
        • OSPolicyAssignment
          • Overview
          • InstanceFilter
            • Overview
            • Inventory
          • LabelSet
            • Overview
            • LabelsEntry
          • Rollout
          • RolloutState
        • OSPolicyAssignmentOperationMetadata
          • Overview
          • APIMethod
          • RolloutState
        • OSPolicyAssignmentReport
          • Overview
          • OSPolicyCompliance
            • Overview
            • ComplianceState
            • OSPolicyResourceCompliance
              • Overview
              • ComplianceState
              • ExecResourceOutput
              • OSPolicyResourceConfigStep
                • Overview
                • Type
        • OneTimeSchedule
        • PatchConfig
          • Overview
          • RebootConfig
        • PatchDeployment
          • Overview
          • State
        • PatchInstanceFilter
          • Overview
          • GroupLabel
            • Overview
            • LabelsEntry
        • PatchJob
          • Overview
          • InstanceDetailsSummary
          • State
        • PatchJobInstanceDetails
        • PatchRollout
          • Overview
          • Mode
        • PausePatchDeploymentRequest
        • RecurringSchedule
          • Overview
          • Frequency
        • ResumePatchDeploymentRequest
        • UpdateOSPolicyAssignmentRequest
        • UpdatePatchDeploymentRequest
        • VulnerabilityReport
          • Overview
          • Vulnerability
            • Overview
            • Details
              • Overview
              • Reference
            • Item
        • WeekDayOfMonth
        • WeeklySchedule
        • WindowsUpdateSettings
          • Overview
          • Classification
        • YumSettings
        • ZypperSettings
    • Osconfig V1alpha
      • os_config_zonal_service
        • Overview
        • pagers
          • Overview
          • ListInstanceOSPoliciesCompliancesAsyncPager
          • ListInstanceOSPoliciesCompliancesPager
          • ListInventoriesAsyncPager
          • ListInventoriesPager
          • ListOSPolicyAssignmentReportsAsyncPager
          • ListOSPolicyAssignmentReportsPager
          • ListOSPolicyAssignmentRevisionsAsyncPager
          • ListOSPolicyAssignmentRevisionsPager
          • ListOSPolicyAssignmentsAsyncPager
          • ListOSPolicyAssignmentsPager
          • ListVulnerabilityReportsAsyncPager
          • ListVulnerabilityReportsPager
        • OsConfigZonalServiceAsyncClient
        • OsConfigZonalServiceClient
      • types
        • Overview
        • CVSSv3
          • Overview
          • AttackComplexity
          • AttackVector
          • Impact
          • PrivilegesRequired
          • Scope
          • UserInteraction
        • CreateOSPolicyAssignmentRequest
        • DeleteOSPolicyAssignmentRequest
        • FixedOrPercent
        • GetInstanceOSPoliciesComplianceRequest
        • GetInventoryRequest
        • GetOSPolicyAssignmentReportRequest
        • GetOSPolicyAssignmentRequest
        • GetVulnerabilityReportRequest
        • InstanceOSPoliciesCompliance
          • Overview
          • OSPolicyCompliance
        • Inventory
          • Overview
          • Item
            • Overview
            • OriginType
            • Type
          • ItemsEntry
          • OsInfo
          • SoftwarePackage
          • VersionedPackage
          • WindowsApplication
          • WindowsQuickFixEngineeringPackage
          • WindowsUpdatePackage
            • Overview
            • WindowsUpdateCategory
          • ZypperPatch
        • InventoryView
        • ListInstanceOSPoliciesCompliancesRequest
        • ListInstanceOSPoliciesCompliancesResponse
        • ListInventoriesRequest
        • ListInventoriesResponse
        • ListOSPolicyAssignmentReportsRequest
        • ListOSPolicyAssignmentReportsResponse
        • ListOSPolicyAssignmentRevisionsRequest
        • ListOSPolicyAssignmentRevisionsResponse
        • ListOSPolicyAssignmentsRequest
        • ListOSPolicyAssignmentsResponse
        • ListVulnerabilityReportsRequest
        • ListVulnerabilityReportsResponse
        • OSPolicy
          • Overview
          • InventoryFilter
          • Mode
          • OSFilter
          • Resource
            • Overview
            • ExecResource
              • Overview
              • Exec
                • Overview
                • Interpreter
            • File
              • Overview
              • Gcs
              • Remote
            • FileResource
              • Overview
              • DesiredState
            • PackageResource
              • Overview
              • APT
              • Deb
              • DesiredState
              • GooGet
              • MSI
              • RPM
              • YUM
              • Zypper
            • RepositoryResource
              • Overview
              • AptRepository
                • Overview
                • ArchiveType
              • GooRepository
              • YumRepository
              • ZypperRepository
          • ResourceGroup
        • OSPolicyAssignment
          • Overview
          • InstanceFilter
            • Overview
            • Inventory
          • LabelSet
            • Overview
            • LabelsEntry
          • Rollout
          • RolloutState
        • OSPolicyAssignmentOperationMetadata
          • Overview
          • APIMethod
          • RolloutState
        • OSPolicyAssignmentReport
          • Overview
          • OSPolicyCompliance
            • Overview
            • ComplianceState
            • OSPolicyResourceCompliance
              • Overview
              • ComplianceState
              • ExecResourceOutput
              • OSPolicyResourceConfigStep
                • Overview
                • Type
        • OSPolicyComplianceState
        • OSPolicyResourceCompliance
          • Overview
          • ExecResourceOutput
        • OSPolicyResourceConfigStep
          • Overview
          • Outcome
          • Type
        • UpdateOSPolicyAssignmentRequest
        • VulnerabilityReport
          • Overview
          • Vulnerability
            • Overview
            • Details
              • Overview
              • Reference
            • Item
  • google-cloud-parallelstore
  • google-cloud-rapidmigrationassessment
  • google-cloud-recommendations-ai
  • google-cloud-recommender
  • google-cloud-redis
  • google-cloud-retail
  • google-cloud-run
  • google-cloud-runtimeconfig
  • google-cloud-secret-manager
  • google-cloud-securesourcemanager
  • google-cloud-securitycenter
  • google-cloud-securitycentermanagement
  • google-cloud-service-control
  • google-cloud-service-directory
  • google-cloud-service-management
  • google-cloud-service-usage
  • google-cloud-source-context
  • google-cloud-spanner
  • google-cloud-speech
  • google-cloud-storage
  • google-cloud-storage-transfer
  • google-cloud-storagebatchoperations
  • google-cloud-storageinsights
  • google-cloud-support
  • google-cloud-talent
  • google-cloud-texttospeech
  • google-cloud-tpu
  • google-cloud-translate
  • google-cloud-video-stitcher
  • google-cloud-video-transcoder
  • google-cloud-videointelligence
  • google-cloud-vision
  • 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.
  • 1.20.2 (latest)
  • 1.20.0
  • 1.19.0
  • 1.18.1
  • 1.17.5
  • 1.16.0
  • 1.15.3
  • 1.14.1
  • 1.13.0
  • 1.12.4
  • 1.11.2
  • 1.10.0
  • 1.9.0
  • 1.8.0
  • 1.7.1
  • 1.6.0
  • 1.5.2
  • 1.4.0
  • 1.3.2
  • 1.2.0
  • 1.1.0
  • 1.0.0
  • 0.1.2

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-08-01 UTC.

  • Terms
  • Privacy
  • Manage cookies