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
d5dfe984
Kaydet (Commit)
d5dfe984
authored
Tem 06, 1999
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix a number of minor problems pointed out by /F.
üst
0d6e6e0b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
libasyncore.tex
Doc/lib/libasyncore.tex
+8
-7
No files found.
Doc/lib/libasyncore.tex
Dosyayı görüntüle @
d5dfe984
...
...
@@ -17,9 +17,9 @@ There are only two ways to have a program on a single processor do
``more than one thing at a time.'' Multi-threaded programming is the
simplest and most popular way to do it, but there is another very
different technique, that lets youhave nearly all the advantages of
multi-threading, without actually using multiple threads.
i
t's really
multi-threading, without actually using multiple threads.
I
t's really
only practical if your program is largely I/O bound. If your program
is CPU bound, then pre-em
tp
ive scheduled threads are probably what
is CPU bound, then pre-em
pt
ive scheduled threads are probably what
you really need. Network servers are rarely CPU-bound, however.
If your operating system supports the
\cfunction
{
select()
}
system call
...
...
@@ -28,7 +28,7 @@ multiple communication channels at once; doing other work while your
I/O is taking place in the ``background.'' Although this strategy can
seem strange and complex, especially at first, it is in many ways
easier to understand and control than multi-threaded programming.
The module documented here solves manyof the difficult problems for
The module documented here solves many
of the difficult problems for
you, making the task of building sophisticated high-performance
network servers and clients a snap.
...
...
@@ -115,16 +115,17 @@ def handle_write(self):
In addition, there are the basic methods needed to construct and
manipulate ``channels,'' which are what we will call the socket
connections in this context. Note that most of these are nearly
identical to their
\class
{
socket
}
partners.
identical to their
socket
partners.
\begin{methoddesc}
{
create
_
socket
}{
family, type
}
This is identical to the creation of a normal socket, and
will use the same options for creation. This means you will
need to reference the
\refmodule
{
socket
}
module.
will use the same options for creation. Refer to the
\refmodule
{
socket
}
documentation for information on creating
sockets.
\end{methoddesc}
\begin{methoddesc}
{
connect
}{
address
}
As with the normal
\class
{
socket
}
object,
\var
{
address
}
is a
As with the normal
socket
object,
\var
{
address
}
is a
tuple with the first element the host to connect to, and the
second the port.
\end{methoddesc}
...
...
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