关于线程模块的问题 Raspberry Pi

Question about the threading module and Raspberry Pi

我想问一个关于我的 Raspberry Pi 项目上下文中线程模块的问题。

在脚本中生成新线程实际上是否使用不同的硬件线程?

如果是这样,我可以在上述脚本中制作的线程有限制吗? (考虑到船上的物理 threads/cores 数量有限)

你可以在 this article, no.

上阅读莫拉

不幸的是,主要 Python 解释器 CPython 的内部结构由于称为全局解释器锁 (GIL) 的进程而否定了真正多线程的可能性。