User:SirRishi/sandbox

'''==Life cycle==

Each female housefly can lay up to 500 eggs in her lifetime, in several batches of about 75 to 150. The eggs are white and are about 1.2 mm in length, and they are deposited by the fly in a suitable place, usually dead and decaying organic matter, such as food waste, carrion, or feces. Within a day, larvae (maggots) hatch from the eggs; they live and feed where they were laid. They are pale-whitish, 3 to 9 mm long, thinner at the mouth end, and legless. Larval development takes from two weeks, under optimal conditions, to 30 days or more in cooler conditions. The larvae avoid light; the interiors of heaps of animal manure provide nutrient-rich sites and ideal growing conditions, warm, moist, and dark.



At the end of their third instar, the larvae crawl to a dry, cool place and transform into pupae. The pupal case is cylindrical with rounded ends, about 1.2 mm long, and formed from the last shed larval skin. It is yellowish at first, darkening through red and brown to nearly black as it ages. Pupae complete their development in two to six days at 35 °C, but may take 20 days or more at 14 °C.

When metamorphosis is complete, the adult housefly emerges from the pupa. To do this, it uses the ptilinum, an eversible pouch on its head, to tear open the end of the pupal case. The adult housefly lives from two weeks to one month in the wild, or longer in benign laboratory conditions. Having emerged from the pupa, it ceases to grow; a small fly is not necessarily a young fly, but is instead the result of getting insufficient food during the larval stage.

Male houseflies are sexually mature after 16 hours and females after 24. Females produce a pheromone, (Z)-9-tricosene (muscalure). This cuticular hydrocarbon is not released into the air and males sense it only on contact with females; it has found use as in pest control, for luring males to fly traps. The male initiates the mating by bumping into the female, in the air or on the ground, known as a "strike". He climbs on to her thorax, and if she is receptive, a courtship period follows, in which the female vibrates her wings and the male strokes her head. The male then reverses onto her abdomen and the female pushes her ovipositor into his genital opening; copulation, with sperm transfer, lasts for several minutes. Females normally mate only once and then reject further advances from males, while males mate multiple times. A volatile semiochemical that is deposited by females on their eggs attracts other gravid females and leads to clustered egg deposition.

The larvae depend on warmth and sufficient moisture to develop; generally, the warmer the temperature, the faster they grow. In general, fresh swine and chicken manures present the best conditions for the developing larvae, reducing the larval period and increasing the size of the pupae. Cattle, goat, and horse manures produce fewer, smaller pupae, while fully composted swine manure, with a water content under 40%, produces none at all. Pupae can range from about 8 to 20 milligrams in weight under different conditions.

The life cycle can be completed in seven to 10 days under optimal conditions, but may take up to two months in adverse circumstances. In temperate regions, 12 generations may occur per year, and in the tropics and subtropics, more than 20. '''