Friday, June 29, 2007

Locks

Generally, locks are advisory locks, where each thread cooperates by acquiring the lock before accessing the equivalent data. Some systems also implement mandatory locks, where attempting unauthorized access to a locked resource will force exclusion in the entity attempting to make the access.

In terms of access to the data, no difference is made between shared or exclusive modes. Other schemes provide for a shared mode, where several threads can obtain a shared lock for read-only access to the data. Other modes such as exclusive, intend-to-exclude and intend-to-upgrade are also widely implemented.

Independent of the type of lock chosen above, locks can be confidential by what happens when the lock strategy prevents progress of a thread. Most locking designs block the finishing of the process requesting the lock until it is allowed to access the locked resource. A spin lock is a lock where the thread simply waits until the lock becomes accessible. It is very efficient if threads are only likely to be uncreative for a short period of time, as it avoids the overhead of operating system process re-scheduling. It is wasteful if the padlock is held for a long period of time.

Monday, June 25, 2007

Color

Color is the visual perceptual possessions corresponding in humans to the categories called red, yellow, white, etc. Color derives from spectrum of light distribution of light energy versus wavelength interacting in the eye with the spectral sensitivities of the light receptors. Color categories and physical condition of color are also associated with objects, materials, light sources, etc., based on their physical properties such as light absorption, reflection, or emission spectra.

Typically, only features of the composition of light that are visible by humans wavelength spectrum from 400 nm to 700 nm, roughly are included, thereby objectively relating the psychological phenomenon of color to its physical specification. Because perception of color stems from the varying sensitivity of different types of cone cells in the retina to different parts of the spectrum, colors may be defined and quantify by the degree to which they stimulate these cells. These physical or physiological quantifications of color, however, do not fully clarify the psychophysical perception of color appearance.

The science of color is sometimes called chromatics. It includes the perception of color by the human eye and brain, the origin of color in materials, color theory in art, and the physics of electromagnetic emission in the visible range that is, what we commonly refer to simply as light.

Friday, June 15, 2007

Voltage

Voltage is the difference of electrical potential between two points of an electrical or electronic circuit, uttered in volts. It measures the potential energy of an electric field to source an electric current in an electrical conductor. Depending on the difference of electrical potential it is called extra low voltage, low voltage, high voltage or extra high voltage.

Between two points in an electric field, such as exists in an electrical circuit, the distinction in their electrical potentials is known as the electrical potential difference. This difference is proportional to the electrostatic force that tends to drive electrons or other charge-carriers from one point to the other. Potential difference, electrical potential, and electromotive force are measured in volts, leading to the commonly used term voltage. Voltage is usually represented in equations by the symbols V, U, or E.

Electrical potential difference can be thought of as the capacity to move electrical charge through a resistance. At a time in physics when the word force was used loosely, the potential difference was named the electromotive force or EMF—a term which is still used in confident contexts.