pydoc > _thread

🏷️ NAME

_thread

🚀 Quick Reference

Use CaseCommandDescription
🌀 Create a new thread_thread.start_new_thread(function, args)Start a new thread and return its identifier
🔒 Create a lock_thread.allocate_lock()Return a new lock object
🆔 Get current thread identifier_thread.get_ident()Return non-zero integer identifying current thread
🆔 Get native thread identifier_thread.get_native_id()Return OS-level thread identifier
📏 Set thread stack size_thread.stack_size([size])Set/return thread stack size in bytes
🚦 Interrupt main thread_thread.interrupt_main(signum)Simulate signal arrival in main thread
🚪 Exit current thread_thread.exit()Raise SystemExit to exit thread silently

📚 MODULE REFERENCE

https://docs.python.org/3.10/library/_thread.html

The following documentation is automatically generated from the Python source files. It may be incomplete, incorrect or include features that are considered implementation detail and may vary between Python implementations. When in doubt, consult the module reference at the location listed above.

📖 DESCRIPTION

This module provides primitive operations to write multi-threaded programs. The 'threading' module provides a more convenient interface.

🏗️ CLASSES

🔒 class lock

A lock object is a synchronization primitive. To create a lock, call threading.Lock(). Methods are:

A lock is not owned by the thread that locked it; another thread may unlock it. A thread attempting to lock a lock that it has already locked will block until another thread unlocks it. Deadlocks may ensue.

Methods defined here:

🔒 class RLock

Methods defined here:

Static methods defined here:

⚙️ FUNCTIONS

📊 DATA

TIMEOUT_MAX = 9223372036.0

📁 FILE

(built-in)

_thread
🏷️ NAME 🚀 Quick Reference 📚 MODULE REFERENCE 📖 DESCRIPTION 🏗️ CLASSES
🔒 class lock 🔒 class RLock
⚙️ FUNCTIONS 📊 DATA 📁 FILE

Generated by phpman v4.10.0-7-g98e9fd5 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-09-01 16:50 @216.73.216.239
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!

^_top_^