Share on Facebook Share on Twitter Email
Answers.com

Sink

 

A device or place that accepts something. See heat sink, data sink and sink device.

Download Computer Desktop Encyclopedia to your iPhone/iTouch

Search unanswered questions...
Enter a question here...
Search: All sources Community Q&A Reference topics
Wikipedia: Sink (computing)
Top

In computing, a sink or event sink is a class or function designed to receive incoming events from another object or function. This is commonly implemented in C++ as callbacks. Object-oriented languages, such as Java and C#, have built-in support for sinks by allowing events to be fired to delegate functions.

It can also be considered the end-point or output point. For example, a buffer stream would often have a source (where you put the data into) and a sink (where the data gets written out to). Another way of thinking about it could be like a black hole - the source is where everything gets sucked in and the sink is where it all gets spit out at the other end. You will often see this in C++ and hardware related programming.

The word sink has been used for both input and output in the industry.



 
 

 

Copyrights:

Computer Desktop Encyclopedia. THIS DEFINITION IS FOR PERSONAL USE ONLY.
All other reproduction is strictly prohibited without permission from the publisher.
© 1981-2010 The Computer Language Company Inc.  All rights reserved.  Read more
Wikipedia. This article is licensed under the Creative Commons Attribution/Share-Alike License. It uses material from the Wikipedia article "Sink (computing)" Read more