Mask_(computing) Mask_(computing)

Mask (computing) - Definition and Overview

Related Words: Calculating, Collating, Computational, Enumerative, Reporting, Scanning, Sorting, Statistical

In computer science, a mask is some data that, along with an operation, are used in order to extract information stored elsewhere.

The most common mask used, also known as a bitmask, extracts the status of certain bits in a binary string or number. For example, if we have the binary string 100111010 and we want to extract the status of the fifth bit counting along from the most significant bit, we would use a bitmask such as 000010000 and use the logical AND operator. Recalling that 1 AND 1 = 1, with 0 otherwise, we find the status of the fifth bit, since

100111010 AND
000010000 =
000010000

Likewise we can set the fifth bit by applying the mask to the data using the OR operator.

Similarly, we can use a sequence of binary numbers with a piece of data of equal length used to inform as to what parts of the data should be examined. With the logical operator (NOT x) AND y, a 1 in the mask instructs that the binary datum below should be ignored, while 0s in the mask tell that the data below are to be examined. A common type of mask of this type is a subnetwork mask, which is associated with a computer's IP address and used to instruct a router which bits of the address indicate the subdivision of the network the computer is on and which identify the specific computer within the subnetwork.

Example Usage of (computing)

MonstrousVermin: @philosophize Yet are the specialised functions of actuarial mathematics needed nowadays with modern computing power?
ServicesCloud: The Character of Cloud Computing - SYS-CON Media (press release) http://bit.ly/7fQHxX
AjayKmr: @srivash RT why the term "cloud computing" is dangerous....http://bit.ly/4sUCMZ
Copyright 2009 WordIQ.com - Privacy Policy  :: Terms of Use  :: Contact Us  :: About Us
This article is licensed under the GNU Free Documentation License. It uses material from the this Wikipedia article.