Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
eec26f98
Kaydet (Commit)
eec26f98
authored
Tem 02, 2003
tarafından
Skip Montanaro
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Correct documentation of check interval - it's 100 by default, not 10 any
longer. Pointed out by Alex Martelli.
üst
74902508
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
init.tex
Doc/api/init.tex
+1
-1
libsys.tex
Doc/lib/libsys.tex
+2
-2
cheatsheet
Misc/cheatsheet
+1
-1
No files found.
Doc/api/init.tex
Dosyayı görüntüle @
eec26f98
...
...
@@ -348,7 +348,7 @@ Therefore, the rule exists that only the thread that has acquired the
global interpreter lock may operate on Python objects or call Python/C
API functions. In order to support multi-threaded Python programs,
the interpreter regularly releases and reacquires the lock --- by
default, every
ten
bytecode instructions (this can be changed with
default, every
100
bytecode instructions (this can be changed with
\withsubitem
{
(in module sys)
}{
\ttindex
{
setcheckinterval()
}}
\function
{
sys.setcheckinterval()
}
). The lock is also released and
reacquired around potentially blocking I/O operations like reading or
...
...
Doc/lib/libsys.tex
Dosyayı görüntüle @
eec26f98
...
...
@@ -394,8 +394,8 @@ else:
\begin{funcdesc}
{
setcheckinterval
}{
interval
}
Set the interpreter's ``check interval''. This integer value
determines how often the interpreter checks for periodic things such
as thread switches and signal handlers. The default is
\code
{
10
}
,
meaning the check is performed every 10 Python virtual instructions.
as thread switches and signal handlers. The default is
\code
{
10
0
}
,
meaning the check is performed every 10
0
Python virtual instructions.
Setting it to a larger value may increase performance for programs
using threads. Setting it to a value
\code
{
<=
}
0 checks every
virtual instruction, maximizing responsiveness as well as overhead.
...
...
Misc/cheatsheet
Dosyayı görüntüle @
eec26f98
...
...
@@ -1361,7 +1361,7 @@ getrefcount(object Returns the reference count of the object. Generally one
) higher than you might expect, because of object arg temp
reference.
setcheckinterval( Sets the interpreter's thread switching interval (in number
interval) of virtual code instructions, default:10).
interval) of virtual code instructions, default:10
0
).
settrace(func) Sets a trace function: called before each line ofcode is
exited.
setprofile(func) Sets a profile function for performance profiling.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment