ニュース

プログラムは通常、上から順に書いたとおりに実行されます。一つの処理が終わるまであとの処理は行われないのが大原則です。 待ってられない!一つの処理をやってるうちに他の処理もしたい!と言うことで並行処理の方法です。 同時に複数の処理を ...
Tkinter で作ったGUIを別スレッドで動かす実験をしていて気付いたのですが、「バーコード端末(S0102-0)ソース」は threading の使い方が間違っているようです。 バーコード・リーダーの読み取り値によって処理を行った後で、ブザー鳴動、LED点滅などの表示動作 ...
Ruby and Python's standard implementations make use of a Global Interpreter Lock. Justin James explains the major advantages and downsides of the GIL mechanism. Multithreading and parallel processing ...
Free-threaded Python is now officially supported, though using it remains optional. Here are four tips for developers getting started with true parallelism in Python. Until recently, Python threads ...
I have worker thread(s) that use the logger. In the main thread, I occasionally need to ask the user to take some action. Which means I need to suppress the logger from actually printing until the ...
What kind of feature are you missing? Where do you notice a shortcoming of PTB? With PEP 779 now accepted, we should think about making the library internals thread safe, specially for any user ...