alla flaggor
wheezy  ] [  jessie  ] [  stretch  ] [  buster  ] [  sid  ]
[ Källkod: libio-aio-perl  ]

Paket: libio-aio-perl (4.60-1)

Länkar för libio-aio-perl

Screenshot

Debianresurser:

Hämta källkodspaketet libio-aio-perl:

Ansvariga:

Externa resurser:

Liknande paket:

asynchronous IO module for Perl

IO::AIO module implements asynchronous I/O using whatever means your operating system supports. It is implemented as an interface to the libeio library: http://software.schmorp.de/pkg/libeio.html.

Asynchronous means that operations that can normally block your program (e.g. reading from disk) will be done asynchronously: the operation will still block, but you can do something else in the meantime. This is extremely useful for programs that need to stay interactive even when doing heavy I/O (GUI programs, high performance network servers etc.), but can also be used to easily do operations in parallel that are normally done sequentially, e.g. stat'ing many files, which is much faster on a RAID volume or over NFS when you do a number of stat operations concurrently.

While most of this works on all types of file descriptors (for example sockets), using these functions on file descriptors that support nonblocking operation (again, sockets, pipes etc.) is very inefficient. Use an event loop for that (such as the L<EV> module): IO::AIO will naturally fit into such an event loop itself.

In this version, a number of threads are started that execute your requests and signal their completion. You don't need thread support in perl, and the threads created by this module will not be visible to perl. In the future, this module might make use of the native aio functions available on many operating systems. However, they are often not well-supported or restricted (GNU/Linux doesn't allow them on normal files currently, for example), and they would only support aio_read and aio_write, so the remaining functionality would have to be implemented using threads anyway.

Although the module will work in the presence of other (Perl-) threads, it is currently not reentrant in any way, so use appropriate locking yourself, always call poll_cb from within the same thread, or never call poll_cb (or other aio_ functions) recursively.

Märken: Software Development: Perl Development, Bibliotek, Implemented in: implemented-in::c, implemented-in::perl, Role: Development Library, Shared Library

Andra paket besläktade med libio-aio-perl

  • beror
  • rekommenderar
  • föreslår
  • enhances

Hämta libio-aio-perl

Hämtningar för alla tillgängliga arkitekturer
Arkitektur Paketstorlek Installerad storlek Filer
alpha (inofficiell anpassning) 119,1 kbyte336,0 kbyte [filförteckning]
amd64 118,5 kbyte295,0 kbyte [filförteckning]
arm64 117,0 kbyte294,0 kbyte [filförteckning]
armel 114,0 kbyte278,0 kbyte [filförteckning]
armhf 113,2 kbyte250,0 kbyte [filförteckning]
hppa (inofficiell anpassning) 119,1 kbyte317,0 kbyte [filförteckning]
hurd-i386 122,5 kbyte306,0 kbyte [filförteckning]
i386 124,6 kbyte314,0 kbyte [filförteckning]
kfreebsd-amd64 117,1 kbyte287,0 kbyte [filförteckning]
kfreebsd-i386 122,7 kbyte306,0 kbyte [filförteckning]
m68k (inofficiell anpassning) 115,4 kbyte286,0 kbyte [filförteckning]
mips 111,2 kbyte311,0 kbyte [filförteckning]
mips64el 111,3 kbyte309,0 kbyte [filförteckning]
mipsel 111,8 kbyte311,0 kbyte [filförteckning]
powerpcspe (inofficiell anpassning) 114,6 kbyte302,0 kbyte [filförteckning]
ppc64 (inofficiell anpassning) 120,3 kbyte367,0 kbyte [filförteckning]
ppc64el 119,9 kbyte367,0 kbyte [filförteckning]
s390x 115,7 kbyte306,0 kbyte [filförteckning]
sh4 (inofficiell anpassning) 124,0 kbyte279,0 kbyte [filförteckning]
sparc64 (inofficiell anpassning) 111,8 kbyte300,0 kbyte [filförteckning]
x32 (inofficiell anpassning) 118,1 kbyte286,0 kbyte [filförteckning]