If insufficient oxygen is available to the muscles, for instance the exercise is vigorous and/or prolonged, the heart and lungs are unable to supply sufficient oxygen. Muscles begin to respire anaerobically. Lactic acid is produced from glucose, instead of carbon dioxide and water. Muscles continue to contract, but less efficiently.