Monday, August 25, 2008

Protected mode and supervisor mode


Modern CPUs support something called dual mode operation. CPUs with this capability use two modes: protected mode and supervisor mode, which allow certain CPU functions to be controlled and affected only by the operating system kernel. Here, protected mode does not refer specifically to the 80286 (Intel's x86 16-bit microprocessor) CPU feature, although its protected mode is very similar to it. CPUs might have other modes similar to 80286 protected mode as well, such as the virtual 8086 mode of the 80386 (Intel's x86 32-bit microprocessor or i386).

However, the term is used here more generally in operating system theory to refer to all modes which limit the capabilities of programs running in that mode, providing things like virtual memory addressing and limiting access to hardware in a manner determined by a program running in supervisor mode. Similar modes have existed in supercomputers, minicomputers, and mainframes as they are essential to fully supporting UNIX-like multi-user operating systems.

When a computer first starts up, it is automatically running in supervisor mode. The first few programs to run on the computer, being the BIOS, bootloader and the operating system have unlimited access to hardware. However when the operating system passes control to another program, it can place the CPU into protected mode.

In protected mode, programs may have access to a more limited set of the CPU's instructions. A user program may leave protected mode only by triggering an interrupt, causing control to be passed back to the kernel. In this way the operating system can maintain exclusive control over things like access to hardware and memory.

The term "protected mode resource" generally refers to one or more CPU registers, which contain information that the running program isn't allowed to alter. Attempts to alter these resources generally causes a switch to supervisor mode.

Tuesday, August 19, 2008

Foraging Foraging


Foraging Foraging theory is a branch of behavioral ecology that studies the foraging behavior of animals in response to the environment in which the animal lives. Foraging theory considers the foraging behavior of animals in reference to the payoff that an animal obtains from different foraging options. Foraging theory predicts that the foraging options that deliver the highest payoff, should be favored by foraging animals because it will have the highest fitness payoff.

Robert MacArthur, J M Emlen, and Eric Pianka, first proposed an optimal foraging theory in an independent paper in 1966. This theory argued that because of the key importance of successful foraging to an individual's survival, it should be possible to predict foraging behavior by using decision theory to determine the behavior that would be shown by an "optimal forager" - one with perfect knowledge of what to do to maximize usable food intake. While the behavior of real animals inevitably departs from that of the optimal forager, optimal foraging theory has proved very useful in developing hypotheses for describing real foraging behavior. Departures from optimality often help to identify constraints either in the animal's behavioral or cognitive repertoire, or in the environment, that had not previously been suspected. With those constraints identified, foraging behavior often does approach the optimal pattern even if it is not identical to it.

Monday, August 11, 2008

Tagged Image File Format


Tagged Image File Format (abbreviated TIFF) is a file format for storing images, including photographs and line art. It is now under the control of Adobe Systems. Originally created by the company Aldus for use with what was then called "desktop publishing", the TIFF format is widely supported by image-manipulation applications, by publishing and page layout applications, by scanning, faxing, word processing, optical character recognition and other applications. Adobe Systems, which acquired Aldus, now holds the copyright to the TIFF specification. TIFF has not had a major update since 1992, though several Aldus/Adobe technical notes have been published with minor extensions to the format, and several specifications, including TIFF/EP, have been based on the TIFF 6.0 specification.

The TIFF is a flexible, adaptable file format for handling images and data within a single file, by including the header tags (size, definition, image-data arrangement, applied image compression) defining the image's geometry. For example, a TIFF can be a container file holding compressed JPEG and RLE (run-length encoding) images. A TIFF also can include a vector-based Clipping path (outlines, croppings, image frames). The ability to store image data in a lossless format makes the TIFF file a useful image archive, because, unlike standard JPEG files, the TIFF using lossless compression (or none) may be edited and re-saved without losing image compression; other TIFF options are layers and pages.

Although the currently accepted standard format, when the TIFF was introduced, its extensibility provoked compatibility problems. Programmers were free to specify new tags and options — but not every implemented program supported every tag created. Resultantly, the TIFF became the lowest common denominator image file. Today, the most TIFF images and readers remain based upon uncompressed 32-bit CMYK or 24-bit RGB images.

Monday, August 04, 2008

Eukaryotic cells

Eukaryotic cells consist of cell membrane, organelles which represent the functional components for storage, excretion, digestion and nucleus (centre of the cell), it contains all the vital information needed by the cell or the whole organism to function, grow and reproduce.
Eukaryotic cells are found in humans, plants and animals, also algae, and protozoa. Eukaryotic cells have both a cellular membrane and a nuclear membrane. Eukaryotic genome is more complex than that of prokaryotes and distributed among multiple chromosomes.

  • Mitosis: The division of the parent nucleus into two daughter nuclei, separating the duplicated genome into two sets, each identical to the parent cell's genome.
  • Cytokinesis: The pinching and division of the cell membrane and cytoplasm, separating the recently divided nuclei, the organelles, and other cellular components.
  • Meiosis: The division of the nucleus in sex cells that reduces the diploid number of chromosomes to a haploid number in order to facilitate sexual reproduction.
Examples of cell division in multicellular eukariotic organisms include repair, growth, and development. An injury or wound is healed when the cells exposed by the injury divide at an excellerated rate until they come into contact with other cells. After this the cells return to a more typical division rate. Cell division causes an organism to grow as long as the rate of cell division exceeds normal cell death. As cells divide and become more numerous they are located in more diverse physical and chemical environments. These variations in local conditions influence the cells to alter gene expression causing the cells to differentiate and become more specialized allowing an organism to develop