[gelöst] Was ist "_asynchrone_ Namensauflösung"?

Smalltalk
Antworten
bullgard
Beiträge: 1642
Registriert: 14.09.2012 23:03:01

[gelöst] Was ist "_asynchrone_ Namensauflösung"?

Beitrag von bullgard » 04.10.2016 14:39:29

Hallo debianforum.de,
https://packages.debian.org/stretch/libc-ares2 (abgerufen 2016-10-02): "
Paket: libc-ares2 (1.12.0-1) : »Asynchrone Namensauflösung«/»asynchronous name resolver«: Die C-Bibliothek c-ares führt »DNS-Anfragen«/»DNS requests« und »Namensauflösungen«/»name resolution« asynchron aus.
Was ist _asynchrone_ Namensauflösung?
https://en.wikipedia.org/wiki/Asynchron ... ramming%29:
Asynchrony, in computer programming, refers to the occurrence of events independently of the main program flow and ways to deal with such events. These may be "outside" events such as the arrival of signals, or actions instigated by a program that take place concurrently with program execution, without the program blocking to wait for results.[1] Asynchronous input/output is an example of the latter cause of asynchrony, and lets programs issue commands to storage or network devices that service these requests while the processor continues executing the program. Doing so provides a degree of parallelism.[1]
Mit freundlichen Grüßen
bullgard
Zuletzt geändert von bullgard am 05.10.2016 17:08:16, insgesamt 1-mal geändert.

rendegast
Beiträge: 15041
Registriert: 27.02.2006 16:50:33
Lizenz eigener Beiträge: MIT Lizenz

Re: [DNS] Was ist "_asynchrone_ Namensauflösung"?

Beitrag von rendegast » 04.10.2016 14:58:24

Im README von Debianlibc-ares-dev findet sich
c-ares
======

This is c-ares, an asynchronous resolver library. It is intended for
applications which need to perform DNS queries without blocking, or need to
perform multiple DNS queries in parallel. The primary examples of such
applications are servers which communicate with multiple clients and programs
with graphical user interfaces.

...
Darauf sich beziehende Software
groupware citadel
online-Spiel bzflag
SIP-Kram
Monitoring xymon
IRC sbnc, zephyr, mosquitto
sssd !
wireshark/tshark
Downloader aria2
mfg rendegast
-----------------------
Viel Eifer, viel Irrtum; weniger Eifer, weniger Irrtum; kein Eifer, kein Irrtum.
(Lin Yutang "Moment in Peking")

dufty2
Beiträge: 1711
Registriert: 22.12.2013 16:41:16

Re: [DNS] Was ist "_asynchrone_ Namensauflösung"?

Beitrag von dufty2 » 04.10.2016 15:12:09

DNS-Auflösung (übers Internet) ist ein rekursiver Prozess, der unter Umständen mehrere Sekunden dauern kann.
Bei der asynchronen lässt der "Hauptthread" einen Nebenthread danach wuseln und kann in der Zwischenzeit anderen Sachen erledigen.
Ist der "Nebenthread" mit der Auflösung fertig, "informiert" er den Hauptthread per "callback":
Ich bin jetzt fertig und hab' das Resultat!

bullgard
Beiträge: 1642
Registriert: 14.09.2012 23:03:01

Re: [DNS] Was ist "_asynchrone_ Namensauflösung"?

Beitrag von bullgard » 05.10.2016 17:07:48

Hallo rendegast, hallo dufty2,
wunderbar! Vielen Dank!
Gruß
bullgard

Antworten