Hey there. Any aircraft whether big or small can glide without problems. Anyone saying thats not true is simply not a pilot or has no idea.
It has infact happened a few times. Just google "gimli glider" to see how an Air Canada 767 glided all the way to safety from 41 000ft after running out of fuel. There was another incident involving an Air Transat A330 where they glided to safety in Teneriffe ( I think it was there) In the 80's there was a British Airways 747 which flew into volcanic ash and lost all 4 engines and glided all the way down over the ocean hoping to reach the land. Luckily they managed to restart 3 of the engines and landed safely, but the point is aircraft can most certainly glide!There are other cases as well!
Basically altitude is key. The higher you are, the more time you have. Also every aircraft is different, so they will have different glide ratios, but I assure you they can all glide with no exception whatsoever! There is a speed called, the best gliding speed. Its around 75kt for a light aircraft and up to 250kt for a Boeing 747-400. A pilot would have to maintain that speed in order to gain maximum distance from his glide, NOT maximum time in the air. Distance is the key here.
There was an answer somewhere above about the planes flight controls running on Hydraulics and as the engines supply the hydraulic system, failed engines could be catastrophic!?!$^(*? What?????
That is a gross underestimation of what a modern airliner is capable of! Yes the main hydraulic system which powers the flight control surfaces and many other services including the landng gear, will not function after an all-engine flame out. But an airliner is fitted with a RAT or Ram Air Turbine. It is a little propeller underneath the main fuselage, which will be deployed by the pilot and exposed into the airflow. It generates enough power to give a limited hydraulic system, capable of operating the three main flight controls: elevator, aileron and rudder. Being a limited system, some controls, like the flaps might not be included in the list of its capabilities, but an aircraft can just as well land flapless, just at a much higher speed. Controls will not be as easy as normal, but they will be enough to be able to operate the aircraft safely. When it comes to the landing gear, the RAT does not usually support it. But thats no problem since it can be either manually extended, or by means of gravity extension (simply letting it fall down).
Once the aircraft closes in it simply makes an approach at a higher angle towards the runway and lands! No reverse thrust, so there should be enough hydraulic power to operate the wheel brakes. Strong pressure will normally be applied. Remember, the aircraft is probably flapless which constitutes a much higher landing speed. It would not be uncommon to have a few busrt tires too, landing that fast. Also subcontiously pilots will fly a higher than needed approach so as to overshoot rather than undershoot the runway. That might take them further down the runway and they might have less time to stop.
All said, multiple engine failiures are extremely uncommon and are usually the result of poor flight planning or any other extenal matter. Hardly ever, if not ever have they happened because both engines just quit. Normally its fuel starvation, which obviously affects all engines. Landing an airliner without power really is something you have to see to believe. I have the greatest respect for the very few pilots who have been put in that situation and have lived to tell the story. I hope I only ever get to see it in the simulator!
Hope that helps.