home *** CD-ROM | disk | FTP | other *** search
- Submitted-by: peter@ficc.ferranti.com (peter da silva)
-
- Peter Collinson noted in the recent Standards Update that there was
- opposition to a standard non-blocking system call interface, on the
- grounds that the threads interface provided the same functionality.
-
- For the case where threads are implemented in user mode, or as a side
- effect of threads, it's likely that most implementations will have
- some such facility anyway. Given this, I think it would be highly
- desirable to spell out a standard interface, whether or not the facility
- itself is mandated.
-
- In the past I have seen two families of interfaces to this, either one
- of which would be acceptable: In the first, you allocate some sort of
- magic token (LUNs, Event Flags, Signal Bits, etc...) from a pool, and
- pass them to the asynchronous call interface. You can later test or wait
- on these tokens to see if an event has occurred. The other interface is
- for the async call to return a token which you can use later, similar to
- the way UNIX file handles work.
-
- Personally, I prefer the latter interface. It's similar to the existing
- UNIX open/read/write setup, and the tokens could even be file descriptors
- in some implementations.
-
-
-
- Volume-Number: Volume 27, Number 13
-
-