Changes between Version 2 and Version 3 of AsyncIO
- Timestamp:
- 06/07/08 14:37:22 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AsyncIO
v2 v3 2 2 3 3 Discussions and specifications for such functionality in Tango. 4 5 == Early plans (no progress) == 6 7 Further on, we're building an asynchronous I/O library based on Tango's IO abstractions with notifications sent on completion of I/O events. The plan for the first stage of development is to have an API capable of delivering I/O, timer and (possibly) Unix signal events to applications through delegates. It will be able to efficiently handle large numbers ( i.e. thousands) of active file descriptors/handles (sockets, pipes, etc.) on all the platforms that Tango supports. Initially the library will work both on Windows (using I/O completion ports) and on Linux (using epoll); we will then provide a Mac OS X and FreeBSD implementation (based on kqueue), and other platforms if there is enough interest from the community. 8 9 During the second stage of development we will build a framework on top of the asynchronous I/O library that will be able to multiplex I/O jobs using Tango Fibers (i.e. lightweight or userspace threads). Each fiber waiting for I/O events will be suspended until the event is received, helping to avoid consuming excessive resources. The load from each fiber will be distributed among a pool of threads. 10 11 The idea behind both libraries is to be able to efficiently implement network protocols that are either synchronous (HTTP, SMTP, etc.) and asynchronous (XMPP, etc.) in nature in both client and server applications. 4 12 5 13 == User discussions / thoughts ==