René's URL Explorer Experiment


Title: وضعیت‌های نخ و قفل مفسر سراسری — مستندات Python 3.15.2

Open Graph Title: وضعیت‌های نخ و قفل مفسر سراسری

Description: مگر در free-threaded build از CPython ، مفسر پایتون به‌طور کلی نخ‌ایمن نیست. به منظور پشتیبانی از برنامه‌های چندنخی پایتون، یک قفل سراسری به نام global interpreter lock یا GIL وجود دارد که باید پیش...

Open Graph Description: مگر در free-threaded build از CPython ، مفسر پایتون به‌طور کلی نخ‌ایمن نیست. به منظور پشتیبانی از برنامه‌های چندنخی پایتون، یک قفل سراسری به نام global interpreter lock یا GIL وجود دارد که باید پیش...

Opengraph URL: https://docs.python.org/3/c-api/threads.html

direct link

Domain: docs.python.org

IPv4 address: 151.101.128.223

og:typewebsite
og:site_namePython documentation
og:image:width1146
og:image:height600
og:imagehttps://docs.python.org/3.15/fa/_images/social_previews/summary_c-api_threads_7b96b9da.png
og:image:altمگر در free-threaded build از CPython ، مفسر پایتون به‌طور کلی نخ‌ایمن نیست. به منظور پشتیبانی از برنامه‌های چندنخی پایتون، یک قفل سراسری به نام global interpreter lock یا GIL وجود دارد که باید پیش...
twitter:cardsummary_large_image
theme-color#3776ab
readthedocs-addons-api-version1

Links:

https://www.python.org/
فهرست مطالبhttps://docs.python.org/fa/3/contents.html
وضعیت‌های نخ و قفل مفسر سراسریhttps://docs.python.org/fa/3/c-api/threads.html
جدا کردن وضعیت نخ از کد توسعه‌ایhttps://docs.python.org/fa/3/c-api/threads.html#detaching-the-thread-state-from-extension-code
APIهاhttps://docs.python.org/fa/3/c-api/threads.html#apis
استفاده از API زبان C از نخ‌های خارجیhttps://docs.python.org/fa/3/c-api/threads.html#using-the-c-api-from-foreign-threads
استفاده‌ی مجدد از وضعیت نخ در فراخوانی‌های مکررhttps://docs.python.org/fa/3/c-api/threads.html#reusing-a-thread-state-across-repeated-calls
اتصال و جداسازی وضعیت‌های نخhttps://docs.python.org/fa/3/c-api/threads.html#attaching-detaching-thread-states
APIهای وضعیت قفل مفسر سراسریhttps://docs.python.org/fa/3/c-api/threads.html#gil-state-apis
هشدارهایی درباره‌ی fork()https://docs.python.org/fa/3/c-api/threads.html#cautions-about-fork
APIهای سطح‌بالاhttps://docs.python.org/fa/3/c-api/threads.html#high-level-apis
APIهای سطح پایینhttps://docs.python.org/fa/3/c-api/threads.html#low-level-apis
اطلاع‌رسانی ناهمگامhttps://docs.python.org/fa/3/c-api/threads.html#asynchronous-notifications
APIهای نخ سیستم‌عاملhttps://docs.python.org/fa/3/c-api/threads.html#operating-system-thread-apis
مقداردهی اولیه و نهایی‌سازی مفسرhttps://docs.python.org/fa/3/c-api/interp-lifecycle.html
اولیه‌های همگام‌سازیhttps://docs.python.org/fa/3/c-api/synchronization.html
گزارش یک اشکالhttps://docs.python.org/fa/3/bugs.html
بهبود این صفحهhttps://docs.python.org/fa/3/improve-page-nojs.html
نمایش منبع https://github.com/python/cpython/blob/3.15/Doc/c-api/threads.rst?plain=1
نمایش منبع ترجمهhttps://github.com/python/python-docs-fa/blob/3.15/c-api/threads.po?plain=1
اندیسhttps://docs.python.org/fa/3/genindex.html
ماژول‌هاhttps://docs.python.org/fa/3/py-modindex.html
بعدیhttps://docs.python.org/fa/3/c-api/synchronization.html
قبلیhttps://docs.python.org/fa/3/c-api/interp-lifecycle.html
Pythonhttps://www.python.org/
3.15.2 documentationhttps://docs.python.org/fa/3/index.html
راهنمای مرجع Python/C APIhttps://docs.python.org/fa/3/c-api/index.html
وضعیت‌های نخ و قفل مفسر سراسریhttps://docs.python.org/fa/3/c-api/threads.html
https://docs.python.org/fa/3/c-api/threads.html#thread-states-and-the-global-interpreter-lock
free-threaded buildhttps://docs.python.org/fa/3/glossary.html#term-free-threaded-build
CPythonhttps://docs.python.org/fa/3/glossary.html#term-CPython
global interpreter lockhttps://docs.python.org/fa/3/glossary.html#term-global-interpreter-lock
GILhttps://docs.python.org/fa/3/glossary.html#term-GIL
sys.setswitchinterval()https://docs.python.org/fa/3/library/sys.html#sys.setswitchinterval
جدا کردن وضعیت نخhttps://docs.python.org/fa/3/c-api/threads.html#detaching-thread-state
PyThreadStatehttps://docs.python.org/fa/3/c-api/threads.html#c.PyThreadState
وضعیت نخhttps://docs.python.org/fa/3/glossary.html#term-thread-state
متصلhttps://docs.python.org/fa/3/glossary.html#term-attached-thread-state
attached thread statehttps://docs.python.org/fa/3/glossary.html#term-attached-thread-state
Py_BEGIN_ALLOW_THREADShttps://docs.python.org/fa/3/c-api/threads.html#c.Py_BEGIN_ALLOW_THREADS
PyThreadState_GetUnchecked()https://docs.python.org/fa/3/c-api/threads.html#c.PyThreadState_GetUnchecked
PyThreadState_Ensure()https://docs.python.org/fa/3/c-api/threads.html#c.PyThreadState_Ensure
PyThreadState_EnsureFromView()https://docs.python.org/fa/3/c-api/threads.html#c.PyThreadState_EnsureFromView
https://docs.python.org/fa/3/c-api/threads.html#detaching-the-thread-state-from-extension-code
وضعیت نخhttps://docs.python.org/fa/3/glossary.html#term-thread-state
Py_BEGIN_ALLOW_THREADShttps://docs.python.org/fa/3/c-api/threads.html#c.Py_BEGIN_ALLOW_THREADS
Py_END_ALLOW_THREADShttps://docs.python.org/fa/3/c-api/threads.html#c.Py_END_ALLOW_THREADS
PyEval_SaveThread()https://docs.python.org/fa/3/c-api/threads.html#c.PyEval_SaveThread
PyEval_RestoreThread()https://docs.python.org/fa/3/c-api/threads.html#c.PyEval_RestoreThread
zlibhttps://docs.python.org/fa/3/library/zlib.html#module-zlib
hashlibhttps://docs.python.org/fa/3/library/hashlib.html#module-hashlib
وضعیت نخhttps://docs.python.org/fa/3/glossary.html#term-attached-thread-state
ساخت‌ نخ‌آزادhttps://docs.python.org/fa/3/glossary.html#term-free-threaded-build
قفل مفسر سراسری (GIL)https://docs.python.org/fa/3/glossary.html#term-GIL
احتیاط‌های مربوط به نهایی‌سازی مفسرhttps://docs.python.org/fa/3/c-api/interp-lifecycle.html#cautions-regarding-runtime-finalization
https://docs.python.org/fa/3/c-api/threads.html#apis
ساخت‌ نخ‌آزادhttps://docs.python.org/fa/3/glossary.html#term-free-threaded-build
https://docs.python.org/fa/3/c-api/threads.html#c.Py_BEGIN_ALLOW_THREADS
ABI پایدارhttps://docs.python.org/fa/3/c-api/stable.html#stable
Py_END_ALLOW_THREADShttps://docs.python.org/fa/3/c-api/threads.html#c.Py_END_ALLOW_THREADS
https://docs.python.org/fa/3/c-api/threads.html#c.Py_END_ALLOW_THREADS
ABI پایدارhttps://docs.python.org/fa/3/c-api/stable.html#stable
Py_BEGIN_ALLOW_THREADShttps://docs.python.org/fa/3/c-api/threads.html#c.Py_BEGIN_ALLOW_THREADS
https://docs.python.org/fa/3/c-api/threads.html#c.Py_BLOCK_THREADS
ABI پایدارhttps://docs.python.org/fa/3/c-api/stable.html#stable
Py_END_ALLOW_THREADShttps://docs.python.org/fa/3/c-api/threads.html#c.Py_END_ALLOW_THREADS
https://docs.python.org/fa/3/c-api/threads.html#c.Py_UNBLOCK_THREADS
ABI پایدارhttps://docs.python.org/fa/3/c-api/stable.html#stable
Py_BEGIN_ALLOW_THREADShttps://docs.python.org/fa/3/c-api/threads.html#c.Py_BEGIN_ALLOW_THREADS
https://docs.python.org/fa/3/c-api/threads.html#using-the-c-api-from-foreign-threads
threadinghttps://docs.python.org/fa/3/library/threading.html#module-threading
PyThreadState_Ensure()https://docs.python.org/fa/3/c-api/threads.html#c.PyThreadState_Ensure
PyThreadState_EnsureFromView()https://docs.python.org/fa/3/c-api/threads.html#c.PyThreadState_EnsureFromView
PyInterpreterGuard_FromCurrent()https://docs.python.org/fa/3/c-api/interp-lifecycle.html#c.PyInterpreterGuard_FromCurrent
PyInterpreterView_FromCurrent()https://docs.python.org/fa/3/c-api/interp-lifecycle.html#c.PyInterpreterView_FromCurrent
PyInterpreterView_FromMain()https://docs.python.org/fa/3/c-api/interp-lifecycle.html#c.PyInterpreterView_FromMain
PEP 788https://peps.python.org/pep-0788/
https://docs.python.org/fa/3/c-api/threads.html#reusing-a-thread-state-across-repeated-calls
PyThreadStatehttps://docs.python.org/fa/3/c-api/threads.html#c.PyThreadState
ساخت نخ‌آزادhttps://docs.python.org/fa/3/glossary.html#term-free-threaded-build
PyThreadState_New()https://docs.python.org/fa/3/c-api/threads.html#c.PyThreadState_New
PyEval_RestoreThread()https://docs.python.org/fa/3/c-api/threads.html#c.PyEval_RestoreThread
PyEval_SaveThread()https://docs.python.org/fa/3/c-api/threads.html#c.PyEval_SaveThread
PyInterpreterState_Get()https://docs.python.org/fa/3/c-api/subinterpreters.html#c.PyInterpreterState_Get
PyThreadState_Ensure()https://docs.python.org/fa/3/c-api/threads.html#c.PyThreadState_Ensure
PyGILState_Ensure()https://docs.python.org/fa/3/c-api/threads.html#c.PyGILState_Ensure
PyThreadState_New()https://docs.python.org/fa/3/c-api/threads.html#c.PyThreadState_New
Py_FinalizeEx()https://docs.python.org/fa/3/c-api/interp-lifecycle.html#c.Py_FinalizeEx
PyEval_RestoreThread()https://docs.python.org/fa/3/c-api/threads.html#c.PyEval_RestoreThread
احتیاط‌های مربوط به نهایی‌سازی مفسرhttps://docs.python.org/fa/3/c-api/interp-lifecycle.html#cautions-regarding-runtime-finalization
https://docs.python.org/fa/3/c-api/threads.html#attaching-detaching-thread-states
PyThreadStateTokenhttps://docs.python.org/fa/3/c-api/threads.html#c.PyThreadStateToken
PyInterpreterGuardhttps://docs.python.org/fa/3/c-api/interp-lifecycle.html#c.PyInterpreterGuard
https://docs.python.org/fa/3/c-api/threads.html#c.PyThreadState_Ensure
ABI پایدارhttps://docs.python.org/fa/3/c-api/stable.html#stable
PyThreadState_Release()https://docs.python.org/fa/3/c-api/threads.html#c.PyThreadState_Release
PyThreadState_Release()https://docs.python.org/fa/3/c-api/threads.html#c.PyThreadState_Release
وضعیت نخhttps://docs.python.org/fa/3/glossary.html#term-thread-state
PyThreadState_New()https://docs.python.org/fa/3/c-api/threads.html#c.PyThreadState_New
PyGILState_GetThisThreadState()https://docs.python.org/fa/3/c-api/threads.html#c.PyGILState_GetThisThreadState
PyThreadStateTokenhttps://docs.python.org/fa/3/c-api/threads.html#c.PyThreadStateToken
PyInterpreterViewhttps://docs.python.org/fa/3/c-api/interp-lifecycle.html#c.PyInterpreterView
https://docs.python.org/fa/3/c-api/threads.html#c.PyThreadState_EnsureFromView
ABI پایدارhttps://docs.python.org/fa/3/c-api/stable.html#stable
PyThreadState_Ensure()https://docs.python.org/fa/3/c-api/threads.html#c.PyThreadState_Ensure
PyThreadState_Release()https://docs.python.org/fa/3/c-api/threads.html#c.PyThreadState_Release
PyThreadStateTokenhttps://docs.python.org/fa/3/c-api/threads.html#c.PyThreadStateToken
https://docs.python.org/fa/3/c-api/threads.html#c.PyThreadState_Release
ABI پایدارhttps://docs.python.org/fa/3/c-api/stable.html#stable
PyThreadState_Ensure()https://docs.python.org/fa/3/c-api/threads.html#c.PyThreadState_Ensure
PyThreadState_EnsureFromView()https://docs.python.org/fa/3/c-api/threads.html#c.PyThreadState_EnsureFromView
PyThreadState_Release()https://docs.python.org/fa/3/c-api/threads.html#c.PyThreadState_Release
Py_FatalError()https://docs.python.org/fa/3/c-api/sys.html#c.Py_FatalError
https://docs.python.org/fa/3/c-api/threads.html#c.PyThreadStateToken
ABI پایدارhttps://docs.python.org/fa/3/c-api/stable.html#stable
PyThreadState_Ensure()https://docs.python.org/fa/3/c-api/threads.html#c.PyThreadState_Ensure
PyThreadState_Release()https://docs.python.org/fa/3/c-api/threads.html#c.PyThreadState_Release
https://docs.python.org/fa/3/c-api/threads.html#gil-state-apis
احتیاط‌های مربوط به نهایی‌سازی مفسرhttps://docs.python.org/fa/3/c-api/interp-lifecycle.html#cautions-regarding-runtime-finalization
رابط‌های جدیدhttps://docs.python.org/fa/3/c-api/threads.html#c-api-foreign-threads
به‌طور نرم‌افزاری منسوخhttps://docs.python.org/fa/3/glossary.html#term-soft-deprecated
https://docs.python.org/fa/3/c-api/threads.html#c.PyGILState_STATE
ABI پایدارhttps://docs.python.org/fa/3/c-api/stable.html#stable
PyGILState_Ensure()https://docs.python.org/fa/3/c-api/threads.html#c.PyGILState_Ensure
PyGILState_Release()https://docs.python.org/fa/3/c-api/threads.html#c.PyGILState_Release
https://docs.python.org/fa/3/c-api/threads.html#c.PyGILState_STATE.PyGILState_LOCKED
PyGILState_Ensure()https://docs.python.org/fa/3/c-api/threads.html#c.PyGILState_Ensure
https://docs.python.org/fa/3/c-api/threads.html#c.PyGILState_STATE.PyGILState_UNLOCKED
PyGILState_Ensure()https://docs.python.org/fa/3/c-api/threads.html#c.PyGILState_Ensure
PyGILState_STATEhttps://docs.python.org/fa/3/c-api/threads.html#c.PyGILState_STATE
https://docs.python.org/fa/3/c-api/threads.html#c.PyGILState_Ensure
ABI پایدارhttps://docs.python.org/fa/3/c-api/stable.html#stable
وضعیت نخ متصلhttps://docs.python.org/fa/3/glossary.html#term-attached-thread-state
PyGILState_Release()https://docs.python.org/fa/3/c-api/threads.html#c.PyGILState_Release
PyGILState_Ensure()https://docs.python.org/fa/3/c-api/threads.html#c.PyGILState_Ensure
Py_BEGIN_ALLOW_THREADShttps://docs.python.org/fa/3/c-api/threads.html#c.Py_BEGIN_ALLOW_THREADS
Py_END_ALLOW_THREADShttps://docs.python.org/fa/3/c-api/threads.html#c.Py_END_ALLOW_THREADS
attached thread statehttps://docs.python.org/fa/3/glossary.html#term-attached-thread-state
PyGILState_Ensure()https://docs.python.org/fa/3/c-api/threads.html#c.PyGILState_Ensure
PyGILState_Release()https://docs.python.org/fa/3/c-api/threads.html#c.PyGILState_Release
وضعیت نخ متصلhttps://docs.python.org/fa/3/glossary.html#term-attached-thread-state
Py_FatalError()https://docs.python.org/fa/3/c-api/sys.html#c.Py_FatalError
احتیاط‌های مربوط به نهایی‌سازی مفسرhttps://docs.python.org/fa/3/c-api/interp-lifecycle.html#cautions-regarding-runtime-finalization
منسوخ‌سازی نرم https://docs.python.org/fa/3/glossary.html#term-soft-deprecated
PyThreadState_Ensure()https://docs.python.org/fa/3/c-api/threads.html#c.PyThreadState_Ensure
PyThreadState_EnsureFromView()https://docs.python.org/fa/3/c-api/threads.html#c.PyThreadState_EnsureFromView
PyGILState_STATEhttps://docs.python.org/fa/3/c-api/threads.html#c.PyGILState_STATE
https://docs.python.org/fa/3/c-api/threads.html#c.PyGILState_Release
ABI پایدارhttps://docs.python.org/fa/3/c-api/stable.html#stable
PyGILState_Ensure()https://docs.python.org/fa/3/c-api/threads.html#c.PyGILState_Ensure
PyGILState_Ensure()https://docs.python.org/fa/3/c-api/threads.html#c.PyGILState_Ensure
PyGILState_Release()https://docs.python.org/fa/3/c-api/threads.html#c.PyGILState_Release
منسوخ‌سازی نرم https://docs.python.org/fa/3/glossary.html#term-soft-deprecated
PyThreadState_Release()https://docs.python.org/fa/3/c-api/threads.html#c.PyThreadState_Release
PyThreadStatehttps://docs.python.org/fa/3/c-api/threads.html#c.PyThreadState
https://docs.python.org/fa/3/c-api/threads.html#c.PyGILState_GetThisThreadState
ABI پایدارhttps://docs.python.org/fa/3/c-api/stable.html#stable
وضعیت نخhttps://docs.python.org/fa/3/glossary.html#term-thread-state
متصلhttps://docs.python.org/fa/3/glossary.html#term-attached-thread-state
PyGILState_Ensure()https://docs.python.org/fa/3/c-api/threads.html#c.PyGILState_Ensure
منسوخ‌سازی نرم https://docs.python.org/fa/3/glossary.html#term-soft-deprecated
PyThreadState_Get()https://docs.python.org/fa/3/c-api/threads.html#c.PyThreadState_Get
PyThreadState_GetUnchecked()https://docs.python.org/fa/3/c-api/threads.html#c.PyThreadState_GetUnchecked
https://docs.python.org/fa/3/c-api/threads.html#c.PyGILState_Check
وضعیت نخ متصلhttps://docs.python.org/fa/3/glossary.html#term-attached-thread-state
PyGILState_GetThisThreadState()https://docs.python.org/fa/3/c-api/threads.html#c.PyGILState_GetThisThreadState
منسوخ‌سازی نرم https://docs.python.org/fa/3/glossary.html#term-soft-deprecated
https://docs.python.org/fa/3/c-api/threads.html#cautions-about-fork
os.fork()https://docs.python.org/fa/3/library/os.html#os.fork
اشیای قفلhttps://docs.python.org/fa/3/library/threading.html#lock-objects
PyOS_AfterFork_Child()https://docs.python.org/fa/3/c-api/sys.html#c.PyOS_AfterFork_Child
os.fork()https://docs.python.org/fa/3/library/os.html#os.fork
PyThreadStatehttps://docs.python.org/fa/3/c-api/threads.html#c.PyThreadState
PyInterpreterStatehttps://docs.python.org/fa/3/c-api/subinterpreters.html#c.PyInterpreterState
مفسر «اصلی»https://docs.python.org/fa/3/c-api/subinterpreters.html#sub-interpreter-support
https://docs.python.org/fa/3/c-api/threads.html#high-level-apis
https://docs.python.org/fa/3/c-api/threads.html#c.PyThreadState
ABI پایدارhttps://docs.python.org/fa/3/c-api/stable.html#stable
PyInterpreterStatehttps://docs.python.org/fa/3/c-api/subinterpreters.html#c.PyInterpreterState
https://docs.python.org/fa/3/c-api/threads.html#c.PyThreadState.interp
https://docs.python.org/fa/3/c-api/threads.html#c.PyEval_InitThreads
ABI پایدارhttps://docs.python.org/fa/3/c-api/stable.html#stable
Py_Initialize()https://docs.python.org/fa/3/c-api/interp-lifecycle.html#c.Py_Initialize
Py_Initialize()https://docs.python.org/fa/3/c-api/interp-lifecycle.html#c.Py_Initialize
PyThreadStatehttps://docs.python.org/fa/3/c-api/threads.html#c.PyThreadState
https://docs.python.org/fa/3/c-api/threads.html#c.PyEval_SaveThread
ABI پایدارhttps://docs.python.org/fa/3/c-api/stable.html#stable
attached thread statehttps://docs.python.org/fa/3/glossary.html#term-attached-thread-state
thread statehttps://docs.python.org/fa/3/glossary.html#term-thread-state
PyThreadStatehttps://docs.python.org/fa/3/c-api/threads.html#c.PyThreadState
https://docs.python.org/fa/3/c-api/threads.html#c.PyEval_RestoreThread
ABI پایدارhttps://docs.python.org/fa/3/c-api/stable.html#stable
وضعیت نخ متصلhttps://docs.python.org/fa/3/glossary.html#term-attached-thread-state
وضعیت نخhttps://docs.python.org/fa/3/glossary.html#term-thread-state
احتیاط‌های مربوط به نهایی‌سازی مفسرhttps://docs.python.org/fa/3/c-api/interp-lifecycle.html#cautions-regarding-runtime-finalization
PyThreadStatehttps://docs.python.org/fa/3/c-api/threads.html#c.PyThreadState
https://docs.python.org/fa/3/c-api/threads.html#c.PyThreadState_Get
ABI پایدارhttps://docs.python.org/fa/3/c-api/stable.html#stable
attached thread statehttps://docs.python.org/fa/3/glossary.html#term-attached-thread-state
Py_BEGIN_ALLOW_THREADShttps://docs.python.org/fa/3/c-api/threads.html#c.Py_BEGIN_ALLOW_THREADS
PyThreadState_GetUnchecked()https://docs.python.org/fa/3/c-api/threads.html#c.PyThreadState_GetUnchecked
PyThreadStatehttps://docs.python.org/fa/3/c-api/threads.html#c.PyThreadState
https://docs.python.org/fa/3/c-api/threads.html#c.PyThreadState_GetUnchecked
PyThreadState_Get()https://docs.python.org/fa/3/c-api/threads.html#c.PyThreadState_Get
PyThreadStatehttps://docs.python.org/fa/3/c-api/threads.html#c.PyThreadState
PyThreadStatehttps://docs.python.org/fa/3/c-api/threads.html#c.PyThreadState
https://docs.python.org/fa/3/c-api/threads.html#c.PyThreadState_Swap
ABI پایدارhttps://docs.python.org/fa/3/c-api/stable.html#stable
attached thread statehttps://docs.python.org/fa/3/glossary.html#term-attached-thread-state
thread statehttps://docs.python.org/fa/3/glossary.html#term-thread-state
وضعیت نخ متصلhttps://docs.python.org/fa/3/glossary.html#term-attached-thread-state
PyEval_ReleaseThread()https://docs.python.org/fa/3/c-api/threads.html#c.PyEval_ReleaseThread
PyGILState_Ensure()https://docs.python.org/fa/3/c-api/threads.html#c.PyGILState_Ensure
https://docs.python.org/fa/3/c-api/threads.html#low-level-apis
PyThreadStatehttps://docs.python.org/fa/3/c-api/threads.html#c.PyThreadState
PyInterpreterStatehttps://docs.python.org/fa/3/c-api/subinterpreters.html#c.PyInterpreterState
https://docs.python.org/fa/3/c-api/threads.html#c.PyThreadState_New
ABI پایدارhttps://docs.python.org/fa/3/c-api/stable.html#stable
وضعیت نخ متصلhttps://docs.python.org/fa/3/glossary.html#term-attached-thread-state
PyThreadStatehttps://docs.python.org/fa/3/c-api/threads.html#c.PyThreadState
https://docs.python.org/fa/3/c-api/threads.html#c.PyThreadState_Clear
ABI پایدارhttps://docs.python.org/fa/3/c-api/stable.html#stable
وضعیت نخhttps://docs.python.org/fa/3/glossary.html#term-thread-state
متصلhttps://docs.python.org/fa/3/glossary.html#term-attached-thread-state
PyThreadState_Delete()https://docs.python.org/fa/3/c-api/threads.html#c.PyThreadState_Delete
PyThreadStatehttps://docs.python.org/fa/3/c-api/threads.html#c.PyThreadState
https://docs.python.org/fa/3/c-api/threads.html#c.PyThreadState_Delete
ABI پایدارhttps://docs.python.org/fa/3/c-api/stable.html#stable
وضعیت نخhttps://docs.python.org/fa/3/glossary.html#term-thread-state
متصلhttps://docs.python.org/fa/3/glossary.html#term-attached-thread-state
PyThreadState_Clear()https://docs.python.org/fa/3/c-api/threads.html#c.PyThreadState_Clear
https://docs.python.org/fa/3/c-api/threads.html#c.PyThreadState_DeleteCurrent
وضعیت نخ متصلhttps://docs.python.org/fa/3/glossary.html#term-attached-thread-state
PyThreadState_Clear()https://docs.python.org/fa/3/c-api/threads.html#c.PyThreadState_Clear
thread statehttps://docs.python.org/fa/3/glossary.html#term-thread-state
پیوستhttps://docs.python.org/fa/3/glossary.html#term-attached-thread-state
PyFrameObjecthttps://docs.python.org/fa/3/c-api/frame.html#c.PyFrameObject
PyThreadStatehttps://docs.python.org/fa/3/c-api/threads.html#c.PyThreadState
https://docs.python.org/fa/3/c-api/threads.html#c.PyThreadState_GetFrame
ABI پایدارhttps://docs.python.org/fa/3/c-api/stable.html#stable
ارجاع قویhttps://docs.python.org/fa/3/glossary.html#term-strong-reference
PyEval_GetFrame()https://docs.python.org/fa/3/c-api/reflection.html#c.PyEval_GetFrame
متصلhttps://docs.python.org/fa/3/glossary.html#term-attached-thread-state
PyThreadStatehttps://docs.python.org/fa/3/c-api/threads.html#c.PyThreadState
https://docs.python.org/fa/3/c-api/threads.html#c.PyThreadState_GetID
ABI پایدارhttps://docs.python.org/fa/3/c-api/stable.html#stable
thread statehttps://docs.python.org/fa/3/glossary.html#term-thread-state
متصلhttps://docs.python.org/fa/3/glossary.html#term-attached-thread-state
PyInterpreterStatehttps://docs.python.org/fa/3/c-api/subinterpreters.html#c.PyInterpreterState
PyThreadStatehttps://docs.python.org/fa/3/c-api/threads.html#c.PyThreadState
https://docs.python.org/fa/3/c-api/threads.html#c.PyThreadState_GetInterpreter
ABI پایدارhttps://docs.python.org/fa/3/c-api/stable.html#stable
متصلhttps://docs.python.org/fa/3/glossary.html#term-attached-thread-state
PyThreadStatehttps://docs.python.org/fa/3/c-api/threads.html#c.PyThreadState
https://docs.python.org/fa/3/c-api/threads.html#c.PyThreadState_EnterTracing
PyThreadState_LeaveTracing()https://docs.python.org/fa/3/c-api/threads.html#c.PyThreadState_LeaveTracing
PyThreadStatehttps://docs.python.org/fa/3/c-api/threads.html#c.PyThreadState
https://docs.python.org/fa/3/c-api/threads.html#c.PyThreadState_LeaveTracing
PyThreadState_EnterTracing()https://docs.python.org/fa/3/c-api/threads.html#c.PyThreadState_EnterTracing
PyEval_SetTrace()https://docs.python.org/fa/3/c-api/profiling.html#c.PyEval_SetTrace
PyEval_SetProfile()https://docs.python.org/fa/3/c-api/profiling.html#c.PyEval_SetProfile
PyThreadStatehttps://docs.python.org/fa/3/c-api/threads.html#c.PyThreadState
https://docs.python.org/fa/3/c-api/threads.html#c.PyUnstable_ThreadState_SetStackProtection
API ناپایدارhttps://docs.python.org/fa/3/c-api/stable.html#unstable-c-api
کنترل بازگشتhttps://docs.python.org/fa/3/c-api/exceptions.html#recursion
RecursionErrorhttps://docs.python.org/fa/3/builtins/exceptions.html#RecursionError
Py_EnterRecursiveCall()https://docs.python.org/fa/3/c-api/exceptions.html#c.Py_EnterRecursiveCall
PyUnstable_ThreadState_SetStackProtection()https://docs.python.org/fa/3/c-api/threads.html#c.PyUnstable_ThreadState_SetStackProtection
PyUnstable_ThreadState_SetStackProtection()https://docs.python.org/fa/3/c-api/threads.html#c.PyUnstable_ThreadState_SetStackProtection
PyUnstable_ThreadState_ResetStackProtection()https://docs.python.org/fa/3/c-api/threads.html#c.PyUnstable_ThreadState_ResetStackProtection
PyThreadStatehttps://docs.python.org/fa/3/c-api/threads.html#c.PyThreadState
https://docs.python.org/fa/3/c-api/threads.html#c.PyUnstable_ThreadState_ResetStackProtection
API ناپایدارhttps://docs.python.org/fa/3/c-api/stable.html#unstable-c-api
PyUnstable_ThreadState_SetStackProtection()https://docs.python.org/fa/3/c-api/threads.html#c.PyUnstable_ThreadState_SetStackProtection
PyObjecthttps://docs.python.org/fa/3/c-api/structures.html#c.PyObject
https://docs.python.org/fa/3/c-api/threads.html#c.PyThreadState_GetDict
ABI پایدارhttps://docs.python.org/fa/3/c-api/stable.html#stable
thread statehttps://docs.python.org/fa/3/glossary.html#term-thread-state
متصلhttps://docs.python.org/fa/3/glossary.html#term-attached-thread-state
PyThreadStatehttps://docs.python.org/fa/3/c-api/threads.html#c.PyThreadState
https://docs.python.org/fa/3/c-api/threads.html#c.PyEval_AcquireThread
ABI پایدارhttps://docs.python.org/fa/3/c-api/stable.html#stable
پیوست‌شدهhttps://docs.python.org/fa/3/glossary.html#term-attached-thread-state
attached thread statehttps://docs.python.org/fa/3/glossary.html#term-attached-thread-state
احتیاط‌های مربوط به نهایی‌سازی مفسرhttps://docs.python.org/fa/3/c-api/interp-lifecycle.html#cautions-regarding-runtime-finalization
PyEval_RestoreThread()https://docs.python.org/fa/3/c-api/threads.html#c.PyEval_RestoreThread
Py_END_ALLOW_THREADS()https://docs.python.org/fa/3/c-api/threads.html#c.Py_END_ALLOW_THREADS
PyGILState_Ensure()https://docs.python.org/fa/3/c-api/threads.html#c.PyGILState_Ensure
PyEval_RestoreThread()https://docs.python.org/fa/3/c-api/threads.html#c.PyEval_RestoreThread
PyThreadStatehttps://docs.python.org/fa/3/c-api/threads.html#c.PyThreadState
https://docs.python.org/fa/3/c-api/threads.html#c.PyEval_ReleaseThread
ABI پایدارhttps://docs.python.org/fa/3/c-api/stable.html#stable
وضعیت نخ متصلhttps://docs.python.org/fa/3/glossary.html#term-attached-thread-state
PyEval_SaveThread()https://docs.python.org/fa/3/c-api/threads.html#c.PyEval_SaveThread
https://docs.python.org/fa/3/c-api/threads.html#asynchronous-notifications
https://docs.python.org/fa/3/c-api/threads.html#c.Py_AddPendingCall
ABI پایدارhttps://docs.python.org/fa/3/c-api/stable.html#stable
بایت‌کدhttps://docs.python.org/fa/3/glossary.html#term-bytecode
وضعیت نخ متصلhttps://docs.python.org/fa/3/glossary.html#term-attached-thread-state
وضعیت نخhttps://docs.python.org/fa/3/glossary.html#term-attached-thread-state
وضعیت نخ متصلhttps://docs.python.org/fa/3/glossary.html#term-attached-thread-state
PyThreadState_EnsureFromView()https://docs.python.org/fa/3/c-api/threads.html#c.PyThreadState_EnsureFromView
https://docs.python.org/fa/3/c-api/threads.html#c.Py_MakePendingCalls
ABI پایدارhttps://docs.python.org/fa/3/c-api/stable.html#stable
attached thread statehttps://docs.python.org/fa/3/glossary.html#term-attached-thread-state
PyObjecthttps://docs.python.org/fa/3/c-api/structures.html#c.PyObject
https://docs.python.org/fa/3/c-api/threads.html#c.PyThreadState_SetAsyncExc
ABI پایدارhttps://docs.python.org/fa/3/c-api/stable.html#stable
PyThread_get_thread_ident()https://docs.python.org/fa/3/c-api/threads.html#c.PyThread_get_thread_ident
وضعیت نخ متصلhttps://docs.python.org/fa/3/glossary.html#term-attached-thread-state
نمی‌ربایدhttps://docs.python.org/fa/3/glossary.html#term-steal
sleep()https://docs.python.org/fa/3/library/time.html#time.sleep
https://docs.python.org/fa/3/c-api/threads.html#operating-system-thread-apis
https://docs.python.org/fa/3/c-api/threads.html#c.PYTHREAD_INVALID_THREAD_ID
https://docs.python.org/fa/3/c-api/threads.html#c.PyThread_start_new_thread
ABI پایدارhttps://docs.python.org/fa/3/c-api/stable.html#stable
PYTHREAD_INVALID_THREAD_IDhttps://docs.python.org/fa/3/c-api/threads.html#c.PYTHREAD_INVALID_THREAD_ID
attached thread statehttps://docs.python.org/fa/3/glossary.html#term-attached-thread-state
https://docs.python.org/fa/3/c-api/threads.html#c.PyThread_get_thread_ident
ABI پایدارhttps://docs.python.org/fa/3/c-api/stable.html#stable
attached thread statehttps://docs.python.org/fa/3/glossary.html#term-attached-thread-state
threading.get_ident()https://docs.python.org/fa/3/library/threading.html#threading.get_ident
threading.Thread.identhttps://docs.python.org/fa/3/library/threading.html#threading.Thread.ident
PyObjecthttps://docs.python.org/fa/3/c-api/structures.html#c.PyObject
https://docs.python.org/fa/3/c-api/threads.html#c.PyThread_GetInfo
ABI پایدارhttps://docs.python.org/fa/3/c-api/stable.html#stable
دنباله ساختاریhttps://docs.python.org/fa/3/c-api/tuple.html#struct-sequence-objects
sys.thread_infohttps://docs.python.org/fa/3/library/sys.html#sys.thread_info
ارجاع قویhttps://docs.python.org/fa/3/glossary.html#term-strong-reference
attached thread statehttps://docs.python.org/fa/3/glossary.html#term-attached-thread-state
https://docs.python.org/fa/3/c-api/threads.html#c.PY_HAVE_THREAD_NATIVE_ID
https://docs.python.org/fa/3/c-api/threads.html#c.PyThread_get_thread_native_id
ABI پایدارhttps://docs.python.org/fa/3/c-api/stable.html#stable
PY_HAVE_THREAD_NATIVE_IDhttps://docs.python.org/fa/3/c-api/threads.html#c.PY_HAVE_THREAD_NATIVE_ID
attached thread statehttps://docs.python.org/fa/3/glossary.html#term-attached-thread-state
threading.get_native_id()https://docs.python.org/fa/3/library/threading.html#threading.get_native_id
https://docs.python.org/fa/3/c-api/threads.html#c.PyThread_exit_thread
ABI پایدارhttps://docs.python.org/fa/3/c-api/stable.html#stable
pthread_exit(3)https://manpages.debian.org/pthread_exit(3)
https://docs.python.org/fa/3/c-api/threads.html#c.PyThread_init_thread
ABI پایدارhttps://docs.python.org/fa/3/c-api/stable.html#stable
https://docs.python.org/fa/3/c-api/threads.html#c.PyThread_set_stacksize
ABI پایدارhttps://docs.python.org/fa/3/c-api/stable.html#stable
attached thread statehttps://docs.python.org/fa/3/glossary.html#term-attached-thread-state
https://docs.python.org/fa/3/c-api/threads.html#c.PyThread_get_stacksize
ABI پایدارhttps://docs.python.org/fa/3/c-api/stable.html#stable
attached thread statehttps://docs.python.org/fa/3/glossary.html#term-attached-thread-state
فهرست مطالبhttps://docs.python.org/fa/3/contents.html
وضعیت‌های نخ و قفل مفسر سراسریhttps://docs.python.org/fa/3/c-api/threads.html
جدا کردن وضعیت نخ از کد توسعه‌ایhttps://docs.python.org/fa/3/c-api/threads.html#detaching-the-thread-state-from-extension-code
APIهاhttps://docs.python.org/fa/3/c-api/threads.html#apis
استفاده از API زبان C از نخ‌های خارجیhttps://docs.python.org/fa/3/c-api/threads.html#using-the-c-api-from-foreign-threads
استفاده‌ی مجدد از وضعیت نخ در فراخوانی‌های مکررhttps://docs.python.org/fa/3/c-api/threads.html#reusing-a-thread-state-across-repeated-calls
اتصال و جداسازی وضعیت‌های نخhttps://docs.python.org/fa/3/c-api/threads.html#attaching-detaching-thread-states
APIهای وضعیت قفل مفسر سراسریhttps://docs.python.org/fa/3/c-api/threads.html#gil-state-apis
هشدارهایی درباره‌ی fork()https://docs.python.org/fa/3/c-api/threads.html#cautions-about-fork
APIهای سطح‌بالاhttps://docs.python.org/fa/3/c-api/threads.html#high-level-apis
APIهای سطح پایینhttps://docs.python.org/fa/3/c-api/threads.html#low-level-apis
اطلاع‌رسانی ناهمگامhttps://docs.python.org/fa/3/c-api/threads.html#asynchronous-notifications
APIهای نخ سیستم‌عاملhttps://docs.python.org/fa/3/c-api/threads.html#operating-system-thread-apis
مقداردهی اولیه و نهایی‌سازی مفسرhttps://docs.python.org/fa/3/c-api/interp-lifecycle.html
اولیه‌های همگام‌سازیhttps://docs.python.org/fa/3/c-api/synchronization.html
گزارش یک اشکالhttps://docs.python.org/fa/3/bugs.html
بهبود این صفحهhttps://docs.python.org/fa/3/improve-page-nojs.html
نمایش منبع https://github.com/python/cpython/blob/3.15/Doc/c-api/threads.rst?plain=1
نمایش منبع ترجمهhttps://github.com/python/python-docs-fa/blob/3.15/c-api/threads.po?plain=1
اندیسhttps://docs.python.org/fa/3/genindex.html
ماژول‌هاhttps://docs.python.org/fa/3/py-modindex.html
بعدیhttps://docs.python.org/fa/3/c-api/synchronization.html
قبلیhttps://docs.python.org/fa/3/c-api/interp-lifecycle.html
Pythonhttps://www.python.org/
3.15.2 documentationhttps://docs.python.org/fa/3/index.html
راهنمای مرجع Python/C APIhttps://docs.python.org/fa/3/c-api/index.html
وضعیت‌های نخ و قفل مفسر سراسریhttps://docs.python.org/fa/3/c-api/threads.html
حق نشرhttps://docs.python.org/fa/3/copyright.html
تاریخچه و مجوزhttps://docs.python.org/license.html
لطفاً کمک مالی کنید.https://www.python.org/psf/donations/
اشکالی یافتیدhttps://docs.python.org/bugs.html
Sphinxhttps://www.sphinx-doc.org/

Response headers:
Servernginx
Content-Typetext/html
Via1.1 varnish, 1.1 varnish
Last-ModifiedSun, 22 Nov 2026 08:38:47 GMT

Viewport: width=device-width, initial-scale=1.0


URLs of crawlers that visited me.