Date: Fri, 14 Jun 2024 03:26:02 -0700 From: Yuri <yuri@FreeBSD.org> To: Freebsd hackers list <freebsd-hackers@FreeBSD.org> Subject: Can all environment be cached atomically? Message-ID: <4188f200-3923-43ed-b913-7358c4208522@FreeBSD.org>
next in thread | raw e-mail | index | archive | help
Imagine the situation when a process has multiple threads which keep changing environment variables. One of the threads attempts to cache all environment variables. I am curious whether the whole environment can be cached atomically, as it exists at some point in time, or this can't be guaranteed and some environment variables would have to be cached at different times? Python's os.environ object is such environment cache, which is created when the Python interpreter is initialized. Thanks, Yuri
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4188f200-3923-43ed-b913-7358c4208522>