17.10. _dummy_thread --- Drop-in pengganti untuk modul _threadΒΆ
Kode sumber: Lib/_dummy_thread.py
This module provides a duplicate interface to the _thread module. It is
meant to be imported when the _thread module is not provided on a
platform.
Suggested usage is:
try:
import _thread
except ImportError:
import _dummy_thread as _thread
Berhati-hatilah untuk tidak menggunakan modul ini di mana deadlock mungkin terjadi dari utas atau thread yang dibuat memblokir dengan menunggu utas lain dibuat. Ini sering terjadi dengan pemblokiran I / O.
