User Tools

Site Tools


opus:fall2012:mkelly23:discretepart2

discrete Keyword 2

union

Definition

A union, when referred to in Computer Science, is defined as a value that can have several formats. Also, a union can be a data structure that contains a variable holding a union value.

A union's primary function is to conserve space in both code and in memory. As is the case with data structures, unions are not limited to one primitive data type at a time.

References

List any sites, books, or sources utilized when researching information on this topic. (Remove any filler text).

discrete Keyword 2 Phase 2

mutual exclusion

Definition

Mutual Exclusion is the method by which one can ensure that a region of memory cannot be accessed by two processes at the same time.
In logic terms, it can described as possibilities where you cannot have more than one be true at a time.

References

Demonstration

Demonstration of the indicated keyword.

If you wish to aid your definition with a code sample, you can do so by using a wiki code block, an example follows:

/*
 * Sample code block
 */
#include <stdio.h>
 
int main()
{
    return(0);
}

Alternatively (or additionally), if you want to demonstrate something on the command-line, you can do so as follows:

lab46:~$ cd src
lab46:~/src$ gcc -o hello hello.c
lab46:~/src$ ./hello
Hello, World!
lab46:~/src$ 
opus/fall2012/mkelly23/discretepart2.txt · Last modified: 2012/10/23 19:02 by mkelly23