NOTE: Because this client usesgrpclibrary, it is safe to
share instances across threads. In multiprocessing scenarios, the best
practice is to create client instancesafterthe invocation ofos.fork()bymultiprocessing.pool.Poolormultiprocessing.Process.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["Version latestkeyboard_arrow_down\n\n- [1.21.0 (latest)](/python/docs/reference/osconfig/latest/multiprocessing)\n- [1.20.2](/python/docs/reference/osconfig/1.20.2/multiprocessing)\n- [1.19.0](/python/docs/reference/osconfig/1.19.0/multiprocessing)\n- [1.18.1](/python/docs/reference/osconfig/1.18.1/multiprocessing)\n- [1.17.5](/python/docs/reference/osconfig/1.17.5/multiprocessing)\n- [1.16.0](/python/docs/reference/osconfig/1.16.0/multiprocessing)\n- [1.15.3](/python/docs/reference/osconfig/1.15.3/multiprocessing)\n- [1.14.1](/python/docs/reference/osconfig/1.14.1/multiprocessing)\n- [1.13.0](/python/docs/reference/osconfig/1.13.0/multiprocessing)\n- [1.12.4](/python/docs/reference/osconfig/1.12.4/multiprocessing)\n- [1.11.2](/python/docs/reference/osconfig/1.11.2/multiprocessing)\n- [1.10.0](/python/docs/reference/osconfig/1.10.0/multiprocessing)\n- [1.9.0](/python/docs/reference/osconfig/1.9.0/multiprocessing)\n- [1.8.0](/python/docs/reference/osconfig/1.8.0/multiprocessing)\n- [1.7.1](/python/docs/reference/osconfig/1.7.1/multiprocessing)\n- [1.6.0](/python/docs/reference/osconfig/1.6.0/multiprocessing)\n- [1.5.2](/python/docs/reference/osconfig/1.5.2/multiprocessing)\n- [1.4.0](/python/docs/reference/osconfig/1.4.0/multiprocessing)\n- [1.3.2](/python/docs/reference/osconfig/1.3.2/multiprocessing)\n- [1.2.0](/python/docs/reference/osconfig/1.2.0/multiprocessing)\n- [1.1.0](/python/docs/reference/osconfig/1.1.0/multiprocessing)\n- [1.0.0](/python/docs/reference/osconfig/1.0.0/multiprocessing)\n- [0.1.2](/python/docs/reference/osconfig/0.1.2/multiprocessing) \n\nMultiprocessing\n===============\n\n**NOTE** : Because this client uses [`grpc`](https://grpc.github.io/grpc/python/grpc.html#module-grpc) library, it is safe to\nshare instances across threads. In multiprocessing scenarios, the best\npractice is to create client instances *after* the invocation of\n[`os.fork()`](https://docs.python.org/3/library/os.html#os.fork) by [`multiprocessing.pool.Pool`](https://docs.python.org/3/library/multiprocessing.html#multiprocessing.pool.Pool) or\n[`multiprocessing.Process`](https://docs.python.org/3/library/multiprocessing.html#multiprocessing.Process)."]]